Skip to content

Commit 2ee26d9

Browse files
authored
Merge pull request #72376 from compnerd/options
utils: build `makeOption` when building with `build.ps1`
2 parents bdb32c9 + 1bc7232 commit 2ee26d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ function Build-Driver($Arch) {
16331633
-Bin (Get-HostProjectBinaryCache Driver) `
16341634
-InstallTo "$($Arch.ToolchainInstallRoot)\usr" `
16351635
-Arch $Arch `
1636-
-UseBuiltCompilers Swift `
1636+
-UseBuiltCompilers C,CXX,Swift `
16371637
-SwiftSDK ([IO.Path]::Combine((Get-InstallDir $HostArch), "Platforms", "Windows.platform", "Developer", "SDKs", "Windows.sdk")) `
16381638
-BuildTargets default `
16391639
-Defines @{
@@ -1645,6 +1645,11 @@ function Build-Driver($Arch) {
16451645
ArgumentParser_DIR = (Get-HostProjectCMakeModules ArgumentParser);
16461646
SQLite3_INCLUDE_DIR = "$LibraryRoot\sqlite-3.43.2\usr\include";
16471647
SQLite3_LIBRARY = "$LibraryRoot\sqlite-3.43.2\usr\lib\SQLite3.lib";
1648+
SWIFT_DRIVER_BUILD_TOOLS = "YES";
1649+
LLVM_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\llvm";
1650+
Clang_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\clang";
1651+
Swift_DIR = "$(Get-HostProjectBinaryCache Compilers)\tools\swift\lib\cmake\swift";
1652+
CMAKE_CXX_FLAGS = "-Xclang -fno-split-cold-code";
16481653
}
16491654
}
16501655

0 commit comments

Comments
 (0)