compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 4 May 2024 05:27:41 +0000 (07:27 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 4 May 2024 05:27:41 +0000 (07:27 +0200)
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: Topic compiler-rt
Gbp-Pq: Name compilerrt-build-scudo-standalone-option.diff

compiler-rt/CMakeLists.txt

index 8a13508fcb980bf7b346e6d4f9e3d3baf9591e54..4d9ecdbe1162e5f717a10fb564555178dd99eb09 100644 (file)
@@ -303,6 +303,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
 #================================