mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-13 21:33:44 +00:00
add option to disable compiler-rt scudo standalone
patch compiler-rt build to add cmake option for disabling scudo standalone add COMPILER_RT_BUILD_SCUDO_STANDALONE=OFF to armel build since the baseline armv5t arch profile is not supported
This commit is contained in:
parent
e196584337
commit
c39e93a38e
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
||||
llvm-toolchain-13 (1:13.0.0-10) unstable; urgency=medium
|
||||
|
||||
* patch compiler-rt build to add option to disable scudo standalone allocator
|
||||
as it is not always supported by all debian baseline arch profiles
|
||||
* add COMPILER_RT_BUILD_SCUDO_STANDALONE=OFF to armel build in debian/rules
|
||||
since the baseline armv5t arch profile is not supported
|
||||
|
||||
-- Erik Maciejewski <mr.emacski@gmail.com> Fri, 05 Nov 2021 16:38:43 -0700
|
||||
|
||||
llvm-toolchain-13 (1:13.0.0-9) unstable; urgency=medium
|
||||
|
||||
* Merge migration to 2stage runtimes build 12 => 13
|
||||
|
19
debian/patches/compilerrt-build-scudo-standalone-option.diff
vendored
Normal file
19
debian/patches/compilerrt-build-scudo-standalone-option.diff
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
add option to disable compiler-rt scudo standalone allocator as it is
|
||||
not always supported by all arch profiles such as arm5vt of ARM32 arch
|
||||
Index: llvm-toolchain-13_13.0.0/compiler-rt/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-13_13.0.0.orig/compiler-rt/CMakeLists.txt
|
||||
+++ llvm-toolchain-13_13.0.0/compiler-rt/CMakeLists.txt
|
||||
@@ -250,6 +250,12 @@ option(COMPILER_RT_USE_BUILTINS_LIBRARY
|
||||
|
||||
include(config-ix)
|
||||
|
||||
+option(COMPILER_RT_BUILD_SCUDO_STANDALONE
|
||||
+ "override whether or not to build scudo standalone" ON)
|
||||
+if(NOT COMPILER_RT_BUILD_SCUDO_STANDALONE)
|
||||
+ set(COMPILER_RT_HAS_SCUDO_STANDALONE FALSE)
|
||||
+endif()
|
||||
+
|
||||
#================================
|
||||
# Setup Compiler Flags
|
||||
#================================
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -149,3 +149,4 @@ libcxx-libatomic-only-with-gcc-rtlib.diff
|
||||
libcxxabi-fix-link-builtins.diff
|
||||
llvm-runtimes-builtins-build-check.diff
|
||||
compilerrt-builtins-arch-fix-armhf.diff
|
||||
compilerrt-build-scudo-standalone-option.diff
|
||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -141,6 +141,8 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
||||
STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_BUILD_BUILTINS=OFF
|
||||
COMPILER_RT_USE_BUILTINS_LIBRARY := OFF
|
||||
LIBCXX_USE_COMPILER_RT := OFF
|
||||
# disable scudo standalone (not supported for baseline armel arch: armv5t)
|
||||
STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_BUILD_SCUDO_STANDALONE=OFF
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring $(DEB_HOST_ARCH),armhf))
|
||||
|
Loading…
Reference in New Issue
Block a user