Skip to content

Commit 1bc7232

Browse files
committed
utils: build makeOption when building with build.ps1
As `build.ps1` is used both for development and for CI, enable the building for `makeOption` tool in swift-driver to ease development.
1 parent b57db86 commit 1bc7232

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
@@ -1628,7 +1628,7 @@ function Build-Driver($Arch) {
16281628
-Bin (Get-HostProjectBinaryCache Driver) `
16291629
-InstallTo "$($Arch.ToolchainInstallRoot)\usr" `
16301630
-Arch $Arch `
1631-
-UseBuiltCompilers Swift `
1631+
-UseBuiltCompilers C,CXX,Swift `
16321632
-SwiftSDK ([IO.Path]::Combine((Get-InstallDir $HostArch), "Platforms", "Windows.platform", "Developer", "SDKs", "Windows.sdk")) `
16331633
-BuildTargets default `
16341634
-Defines @{
@@ -1640,6 +1640,11 @@ function Build-Driver($Arch) {
16401640
ArgumentParser_DIR = (Get-HostProjectCMakeModules ArgumentParser);
16411641
SQLite3_INCLUDE_DIR = "$LibraryRoot\sqlite-3.43.2\usr\include";
16421642
SQLite3_LIBRARY = "$LibraryRoot\sqlite-3.43.2\usr\lib\SQLite3.lib";
1643+
SWIFT_DRIVER_BUILD_TOOLS = "YES";
1644+
LLVM_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\llvm";
1645+
Clang_DIR = "$(Get-HostProjectBinaryCache Compilers)\lib\cmake\clang";
1646+
Swift_DIR = "$(Get-HostProjectBinaryCache Compilers)\tools\swift\lib\cmake\swift";
1647+
CMAKE_CXX_FLAGS = "-Xclang -fno-split-cold-code";
16431648
}
16441649
}
16451650

0 commit comments

Comments
 (0)