@@ -26,63 +26,23 @@ set(LLVM_DEFAULT_TARGET_TRIPLE aarch64-unknown-windows-msvc CACHE STRING "")
26
26
set (LLVM_APPEND_VC_REV NO CACHE BOOL "" )
27
27
set (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR YES CACHE BOOL "" )
28
28
set (LLVM_ENABLE_PYTHON YES CACHE BOOL "" )
29
-
30
- set (DEFAULT_BUILTIN_TARGETS
31
- x86_64-unknown-windows-msvc
32
- aarch64-unknown-windows-msvc )
33
- # Build the android builtins if NDK path is provided.
34
- if (NOT "$ENV{NDKPATH} " STREQUAL "" )
35
- list (APPEND DEFAULT_BUILTIN_TARGETS
36
- aarch64-unknown-linux-android
37
- x86_64-unknown-linux-android)
38
- endif ()
39
-
40
- # The builtin targets are used to build the compiler-rt builtins.
41
- set (LLVM_BUILTIN_TARGETS ${DEFAULT_BUILTIN_TARGETS} CACHE STRING "" )
42
-
43
- # The runtime targets are used to build the compiler-rt profile library.
44
29
set (LLVM_RUNTIME_TARGETS
45
- x86_64-unknown-windows-msvc
46
30
aarch64-unknown-windows-msvc
47
- CACHE STRING "" )
48
-
31
+ CACHE STRING "" )
49
32
foreach (target ${LLVM_RUNTIME_TARGETS} )
50
33
set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES
51
34
compiler-rt
52
35
CACHE STRING "" )
53
36
set (RUNTIMES_${target} _CMAKE_MT mt CACHE STRING "" )
54
37
set (RUNTIMES_${target} _CMAKE_SYSTEM_NAME Windows CACHE STRING "" )
55
38
set (RUNTIMES_${target} _CMAKE_BUILD_TYPE Release CACHE STRING "" )
56
- set (RUNTIMES_${target} _COMPILER_RT_BUILD_BUILTINS NO CACHE BOOL "" )
57
39
set (RUNTIMES_${target} _COMPILER_RT_BUILD_CRT NO CACHE BOOL "" )
58
40
set (RUNTIMES_${target} _COMPILER_RT_BUILD_LIBFUZZER NO CACHE BOOL "" )
59
- set (RUNTIMES_${target} _COMPILER_RT_BUILD_ORC NO CACHE BOOL "" )
60
41
set (RUNTIMES_${target} _COMPILER_RT_BUILD_PROFILE YES CACHE BOOL "" )
61
42
set (RUNTIMES_${target} _COMPILER_RT_BUILD_SANITIZERS NO CACHE BOOL "" )
62
43
set (RUNTIMES_${target} _COMPILER_RT_BUILD_XRAY NO CACHE BOOL "" )
63
44
endforeach ()
64
45
65
- foreach (target ${LLVM_BUILTIN_TARGETS} )
66
- set (BUILTINS_${target} _CMAKE_MT mt CACHE STRING "" )
67
- if (${target} MATCHES windows-msvc )
68
- set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Windows CACHE STRING "" )
69
- elseif (${target} MATCHES linux-android)
70
- # Use a single 'linux' directory and arch-based lib names on Android.
71
- set (BUILTINS_${target} _LLVM_ENABLE_PER_TARGET_RUNTIME_DIR NO CACHE BOOL "" )
72
- set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Android CACHE STRING "" )
73
- if (${target} MATCHES aarch64)
74
- set (BUILTINS_${target} _CMAKE_ANDROID_ARCH_ABI arm64-v8a CACHE STRING "" )
75
- else ()
76
- set (BUILTINS_${target} _CMAKE_ANDROID_ARCH_ABI x86_64 CACHE STRING "" )
77
- endif ()
78
- set (BUILTINS_${target} _CMAKE_ANDROID_NDK $ENV{NDKPATH} CACHE PATH "" )
79
- set (BUILTINS_${target} _CMAKE_ANDROID_API 21 CACHE STRING "" )
80
- set (BUILTINS_${target} _CMAKE_C_COMPILER_TARGET "${target} 21" CACHE STRING "" )
81
- set (BUILTINS_${target} _CMAKE_CXX_COMPILER_TARGET "${target} 21" CACHE STRING "" )
82
- endif ()
83
- set (BUILTINS_${target} _CMAKE_BUILD_TYPE Release CACHE STRING "" )
84
- endforeach ()
85
-
86
46
set (LLVM_TARGETS_TO_BUILD AArch64 ARM WebAssembly X86 CACHE STRING "" )
87
47
88
48
# Disable certain targets to reduce the configure time or to avoid configuration
@@ -202,7 +162,6 @@ set(LLVM_DISTRIBUTION_COMPONENTS
202
162
libclang
203
163
libclang-headers
204
164
LTO
205
- builtins
206
165
runtimes
207
166
${LLVM_TOOLCHAIN_TOOLS}
208
167
${CLANG_TOOLS}
0 commit comments