File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ function Build-CMakeProject {
598
598
if ($UseBuiltCompilers.Contains (" ASM" )) {
599
599
TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
600
600
} else {
601
- TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER " $BinaryCache \toolchains\ $PinnedToolchain \Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\ clang-cl.exe"
601
+ TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER ( Join-Path - Path ( Get-PinnedToolchainTool ) - ChildPath " clang-cl.exe" )
602
602
}
603
603
Append- FlagsDefine $Defines CMAKE_ASM_FLAGS " --target=$ ( $Arch.LLVMTarget ) "
604
604
TryAdd- KeyValue $Defines CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL " /MD"
@@ -607,7 +607,7 @@ function Build-CMakeProject {
607
607
if ($UseBuiltCompilers.Contains (" C" )) {
608
608
TryAdd- KeyValue $Defines CMAKE_C_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
609
609
} else {
610
- TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER " $BinaryCache \toolchains\ $PinnedToolchain \Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\ clang-cl.exe"
610
+ TryAdd- KeyValue $Defines CMAKE_C_COMPILER ( Join-Path - Path ( Get-PinnedToolchainTool ) - ChildPath " clang-cl.exe" )
611
611
}
612
612
TryAdd- KeyValue $Defines CMAKE_C_COMPILER_TARGET $Arch.LLVMTarget
613
613
@@ -625,7 +625,7 @@ function Build-CMakeProject {
625
625
if ($UseBuiltCompilers.Contains (" CXX" )) {
626
626
TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
627
627
} else {
628
- TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER (Join-Path - Path (Get-PinnedToolchainTool ) - ChildPath " clang-cl.exe" )
628
+ TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER (Join-Path - Path (Get-PinnedToolchainTool ) - ChildPath " clang-cl.exe" )
629
629
}
630
630
TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER_TARGET $Arch.LLVMTarget
631
631
You can’t perform that action at this time.
0 commit comments