Skip to content

Commit 25a1552

Browse files
authored
Merge pull request swiftlang#38406 from compnerd/target
caches: add `LLVM_DEFAULT_TARGET_TRIPLE` to Windows-x86_64
2 parents e7fcaae + 0a8da95 commit 25a1552

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/caches/Windows-x86_64.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ set(LLVM_ENABLE_ASSERTIONS YES CACHE BOOL "")
2020

2121
set(ENABLE_X86_RELAX_RELOCATIONS YES CACHE BOOL "")
2222

23+
# NOTE(compnerd) we can hardcode the default target triple since the cache files
24+
# are target dependent.
25+
set(LLVM_DEFAULT_TARGET_TRIPLE x86_64-unknown-windows-msvc CACHE STRING "")
26+
2327
set(LLVM_APPEND_VC_REV NO CACHE BOOL "")
2428
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR YES CACHE BOOL "")
2529
set(LLVM_ENABLE_PYTHON YES CACHE BOOL "")
@@ -39,6 +43,7 @@ foreach(target ${LLVM_RUNTIME_TARGETS})
3943
set(RUNTIMES_${target}_COMPILER_RT_BUILD_SANITIZERS NO CACHE BOOL "")
4044
set(RUNTIMES_${target}_COMPILER_RT_BUILD_XRAY NO CACHE BOOL "")
4145
endforeach()
46+
4247
set(LLVM_TARGETS_TO_BUILD AArch64 ARM WebAssembly X86 CACHE STRING "")
4348

4449
# Disable certain targets to reduce the configure time or to avoid configuration

0 commit comments

Comments
 (0)