Skip to content

Commit a1c30ac

Browse files
authored
Merge pull request #75481 from compnerd/hcs
utils: enable HCS on Windows builds
2 parents a92b995 + b0366e7 commit a1c30ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utils/build.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,6 @@ function Build-Driver($Arch) {
19701970
LLVM_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\llvm";
19711971
Clang_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\clang";
19721972
Swift_DIR = "$(Get-HostProjectBinaryCache Compilers)\tools\swift\lib\cmake\swift";
1973-
CMAKE_CXX_FLAGS = "-Xclang -fno-split-cold-code";
19741973
}
19751974
}
19761975

@@ -2116,8 +2115,8 @@ function Build-IndexStoreDB($Arch) {
21162115
-BuildTargets default `
21172116
-Defines @{
21182117
BUILD_SHARED_LIBS = "NO";
2119-
CMAKE_C_FLAGS = @("-Xclang", "-fno-split-cold-code", "-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
2120-
CMAKE_CXX_FLAGS = @("-Xclang", "-fno-split-cold-code", "-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
2118+
CMAKE_C_FLAGS = @("-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
2119+
CMAKE_CXX_FLAGS = @("-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
21212120
}
21222121
}
21232122

@@ -2206,7 +2205,7 @@ function Test-PackageManager() {
22062205
-Src $SrcDir `
22072206
-Bin $OutDir `
22082207
-Arch $HostArch `
2209-
-Xcc -Xclang -Xcc -fno-split-cold-code -Xcc "-I$LibraryRoot\sqlite-3.43.2\usr\include" -Xlinker "-L$LibraryRoot\sqlite-3.43.2\usr\lib"
2208+
-Xcc "-I$LibraryRoot\sqlite-3.43.2\usr\include" -Xlinker "-L$LibraryRoot\sqlite-3.43.2\usr\lib"
22102209
}
22112210
}
22122211

0 commit comments

Comments
 (0)