[compiler-rt] d6c445e - [NFC] Guard scudo_standalone's optional dependency on GWP-ASan behind flags.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 10:56:57 PST 2019


Author: Mitch Phillips
Date: 2019-12-13T10:55:53-08:00
New Revision: d6c445ea6907c7165ace0167327d557b0a786604

URL: https://github.com/llvm/llvm-project/commit/d6c445ea6907c7165ace0167327d557b0a786604
DIFF: https://github.com/llvm/llvm-project/commit/d6c445ea6907c7165ace0167327d557b0a786604.diff

LOG: [NFC] Guard scudo_standalone's optional dependency on GWP-ASan behind flags.

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index 6b3532b9d6b5..920034b35778 100644
--- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -1,5 +1,7 @@
 add_compiler_rt_component(scudo_standalone)
-add_dependencies(scudo_standalone gwp_asan)
+if (COMPILER_RT_HAS_GWP_ASAN)
+  add_dependencies(scudo_standalone gwp_asan)
+endif()
 
 include_directories(../..)
 


        


More information about the llvm-commits mailing list