mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-17 17:05:02 +00:00
rebase of the patch
This commit is contained in:
parent
a58068ab6e
commit
e54df6f5cb
@ -1,10 +1,10 @@
|
||||
fix builtins armhf default arch detection by adding the same armhf triple
|
||||
handling use for compiler-rt
|
||||
Index: llvm-toolchain-12_12.0.1/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
Index: llvm-toolchain-13-13.0.1~+rc1/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-12_12.0.1.orig/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
+++ llvm-toolchain-12_12.0.1/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
@@ -16,6 +16,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
|
||||
--- llvm-toolchain-13-13.0.1~+rc1.orig/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
+++ llvm-toolchain-13-13.0.1~+rc1/compiler-rt/lib/builtins/CMakeLists.txt
|
||||
@@ -17,6 +17,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
|
||||
|
||||
load_llvm_config()
|
||||
construct_compiler_rt_default_triple()
|
||||
|
@ -1,10 +1,10 @@
|
||||
if LIBCXXABI_USE_COMPILER_RT=ON, add builtins to libcxxabi library
|
||||
flags, otherwise add libgcc following how libunwind does the same
|
||||
Index: llvm-toolchain-12_12.0.1/libcxxabi/src/CMakeLists.txt
|
||||
Index: llvm-toolchain-13-13.0.1~+rc1/libcxxabi/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-12_12.0.1.orig/libcxxabi/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-12_12.0.1/libcxxabi/src/CMakeLists.txt
|
||||
@@ -104,7 +104,9 @@ if (ANDROID AND ANDROID_PLATFORM_LEVEL L
|
||||
--- llvm-toolchain-13-13.0.1~+rc1.orig/libcxxabi/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-13-13.0.1~+rc1/libcxxabi/src/CMakeLists.txt
|
||||
@@ -111,7 +111,9 @@ if (ANDROID AND ANDROID_PLATFORM_LEVEL L
|
||||
list(APPEND LIBCXXABI_LIBRARIES android_support)
|
||||
endif()
|
||||
|
||||
@ -14,3 +14,4 @@ Index: llvm-toolchain-12_12.0.1/libcxxabi/src/CMakeLists.txt
|
||||
+else()
|
||||
add_library_flags_if(LIBCXXABI_HAS_GCC_LIB gcc)
|
||||
endif ()
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
add a check and only set up and build compiler-rt builtins if they have
|
||||
not been disabled
|
||||
Index: llvm-toolchain-12_12.0.1/llvm/runtimes/CMakeLists.txt
|
||||
Index: llvm-toolchain-13-13.0.1~+rc1/llvm/runtimes/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-12_12.0.1.orig/llvm/runtimes/CMakeLists.txt
|
||||
+++ llvm-toolchain-12_12.0.1/llvm/runtimes/CMakeLists.txt
|
||||
@@ -131,7 +131,12 @@ endfunction()
|
||||
--- llvm-toolchain-13-13.0.1~+rc1.orig/llvm/runtimes/CMakeLists.txt
|
||||
+++ llvm-toolchain-13-13.0.1~+rc1/llvm/runtimes/CMakeLists.txt
|
||||
@@ -129,7 +129,12 @@ endfunction()
|
||||
# is required because the other runtimes need the builtin libraries present
|
||||
# before the just-built compiler can pass the configuration tests.
|
||||
get_compiler_rt_path(compiler_rt_path)
|
||||
|
@ -1,8 +1,9 @@
|
||||
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
|
||||
--- a/llvm/runtimes/CMakeLists.txt
|
||||
+++ b/llvm/runtimes/CMakeLists.txt
|
||||
@@ -242,6 +242,8 @@
|
||||
${COMMON_CMAKE_ARGS}
|
||||
Index: llvm-toolchain-13-13.0.1~+rc1/llvm/runtimes/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-13-13.0.1~+rc1.orig/llvm/runtimes/CMakeLists.txt
|
||||
+++ llvm-toolchain-13-13.0.1~+rc1/llvm/runtimes/CMakeLists.txt
|
||||
@@ -244,6 +244,8 @@ function(runtime_default_target)
|
||||
-DCMAKE_ASM_COMPILER_WORKS=ON
|
||||
${RUNTIMES_CMAKE_ARGS}
|
||||
PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
|
||||
+ LLVM_USE_LLD
|
||||
@ -10,13 +11,12 @@ diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
|
||||
${ARG_PREFIXES}
|
||||
EXTRA_TARGETS ${extra_targets}
|
||||
${test_targets}
|
||||
@@ -345,6 +347,8 @@
|
||||
@@ -345,6 +347,8 @@ function(runtime_register_target name ta
|
||||
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
|
||||
-DLLVM_RUNTIMES_TARGET=${name}
|
||||
${COMMON_CMAKE_ARGS}
|
||||
${${name}_extra_args}
|
||||
+ PASSTHROUGH_PREFIXES LLVM_USE_LLD
|
||||
+ LLVM_USE_LINKER
|
||||
EXTRA_TARGETS ${${name}_extra_targets}
|
||||
${${name}_test_targets}
|
||||
USE_TOOLCHAIN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user