[NFC] Guard scudo_standalone's optional dependency on GWP-ASan behind flags.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Fri, 13 Dec 2019 18:55:53 +0000 (10:55 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Fri, 13 Dec 2019 18:55:53 +0000 (10:55 -0800)
compiler-rt/lib/scudo/standalone/CMakeLists.txt

index 6b3532b..920034b 100644 (file)
@@ -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(../..)