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 {
598598 if ($UseBuiltCompilers.Contains (" ASM" )) {
599599 TryAdd- KeyValue $Defines CMAKE_ASM_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
600600 } 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" )
602602 }
603603 Append- FlagsDefine $Defines CMAKE_ASM_FLAGS " --target=$ ( $Arch.LLVMTarget ) "
604604 TryAdd- KeyValue $Defines CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL " /MD"
@@ -607,7 +607,7 @@ function Build-CMakeProject {
607607 if ($UseBuiltCompilers.Contains (" C" )) {
608608 TryAdd- KeyValue $Defines CMAKE_C_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
609609 } 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" )
611611 }
612612 TryAdd- KeyValue $Defines CMAKE_C_COMPILER_TARGET $Arch.LLVMTarget
613613
@@ -625,7 +625,7 @@ function Build-CMakeProject {
625625 if ($UseBuiltCompilers.Contains (" CXX" )) {
626626 TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER " $BinaryCache \1\bin\clang-cl.exe"
627627 } 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" )
629629 }
630630 TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER_TARGET $Arch.LLVMTarget
631631
You can’t perform that action at this time.
0 commit comments