compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 22 Jul 2022 13:10:20 +0000 (14:10 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 22 Jul 2022 13:10:20 +0000 (14:10 +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 e12d1eb1cebf611679fb981c3fc5f3e480d33e67..f1a989bcf4a2985803214579654a07c4eff2c3be 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
 #================================