Skip to content

Commit c6c62e1

Browse files
committed
Drop the arm64 changes
build ps1 is currently not able to compile the arm64 builtins correctly
1 parent bd2c3ea commit c6c62e1

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

cmake/caches/Windows-aarch64.cmake

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -26,63 +26,23 @@ set(LLVM_DEFAULT_TARGET_TRIPLE aarch64-unknown-windows-msvc CACHE STRING "")
2626
set(LLVM_APPEND_VC_REV NO CACHE BOOL "")
2727
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR YES CACHE BOOL "")
2828
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.
4429
set(LLVM_RUNTIME_TARGETS
45-
x86_64-unknown-windows-msvc
4630
aarch64-unknown-windows-msvc
47-
CACHE STRING "")
48-
31+
CACHE STRING "")
4932
foreach(target ${LLVM_RUNTIME_TARGETS})
5033
set(RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES
5134
compiler-rt
5235
CACHE STRING "")
5336
set(RUNTIMES_${target}_CMAKE_MT mt CACHE STRING "")
5437
set(RUNTIMES_${target}_CMAKE_SYSTEM_NAME Windows CACHE STRING "")
5538
set(RUNTIMES_${target}_CMAKE_BUILD_TYPE Release CACHE STRING "")
56-
set(RUNTIMES_${target}_COMPILER_RT_BUILD_BUILTINS NO CACHE BOOL "")
5739
set(RUNTIMES_${target}_COMPILER_RT_BUILD_CRT NO CACHE BOOL "")
5840
set(RUNTIMES_${target}_COMPILER_RT_BUILD_LIBFUZZER NO CACHE BOOL "")
59-
set(RUNTIMES_${target}_COMPILER_RT_BUILD_ORC NO CACHE BOOL "")
6041
set(RUNTIMES_${target}_COMPILER_RT_BUILD_PROFILE YES CACHE BOOL "")
6142
set(RUNTIMES_${target}_COMPILER_RT_BUILD_SANITIZERS NO CACHE BOOL "")
6243
set(RUNTIMES_${target}_COMPILER_RT_BUILD_XRAY NO CACHE BOOL "")
6344
endforeach()
6445

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-
8646
set(LLVM_TARGETS_TO_BUILD AArch64 ARM WebAssembly X86 CACHE STRING "")
8747

8848
# Disable certain targets to reduce the configure time or to avoid configuration
@@ -202,7 +162,6 @@ set(LLVM_DISTRIBUTION_COMPONENTS
202162
libclang
203163
libclang-headers
204164
LTO
205-
builtins
206165
runtimes
207166
${LLVM_TOOLCHAIN_TOOLS}
208167
${CLANG_TOOLS}

0 commit comments

Comments
 (0)