compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21: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: Topic compiler-rt
Gbp-Pq: Name compilerrt-build-scudo-standalone-option.diff

compiler-rt/CMakeLists.txt

index 2207555b03a03f5e17a8937683916b0d74c6fd60..c34105e2b72db84f88214d097025299da64b22d3 100644 (file)
@@ -286,6 +286,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
 #================================