From f4379b210c462c60e33403a77b68787bc6af0c7a Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Fri, 17 Feb 2023 11:57:29 +0000 Subject: [PATCH] compilerrt-build-scudo-standalone-option 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index 3a41aa43e4..53824fccd0 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -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 #================================ -- 2.30.2