compilerrt-build-scudo-standalone-option
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 11 Jan 2024 13:15:09 +0000 (14:15 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 11 Jan 2024 13:15:09 +0000 (14:15 +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 cfa97023d28124f47817c63e569fdadaf7403ebb..931dcb5736f005975c4949218d8cd1e6a462f5bd 100644 (file)
@@ -294,6 +294,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
 #================================