compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 23 Sep 2024 11:23:31 +0000 (13:23 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Sep 2024 11:23:31 +0000 (13:23 +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 bbb4e8d7c333e4f077c77e19c8f877eb205c1e35..ecad20b10570e418504e14c26f27a6af8c7bf8ac 100644 (file)
@@ -282,6 +282,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
 #================================