compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 25 Jun 2022 07:56:23 +0000 (08:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 25 Jun 2022 07:56:23 +0000 (08:56 +0100)
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

Gbp-Pq: Name compilerrt-build-scudo-standalone-option.diff

compiler-rt/CMakeLists.txt

index 3a41aa43e406695302bb26d1fe06d205a5c7fd9a..53824fccd077870330e903a6c875197d86b33de3 100644 (file)
@@ -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
 #================================