diff options
author | Mitch Phillips <mitchphillips@outlook.com> | 2019-06-04 19:18:40 +0000 |
---|---|---|
committer | Mitch Phillips <mitchphillips@outlook.com> | 2019-06-04 19:18:40 +0000 |
commit | 4d2285b94a05a2aa743c6e52daa0c17c6603395e (patch) | |
tree | 1ce2dc13595842373df3647e27623f2f85fd9646 /cmake | |
parent | b85ba80b0dd2863792b32a6230279297cda84bfd (diff) | |
download | compiler-rt-4d2285b94a05a2aa743c6e52daa0c17c6603395e.tar.gz |
Fixed GWP-ASan build breakage. When adding the optional flag parser, there was a missing dependency on compiler-rt (and thus SanitizerCommon) for this feature.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@362542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 67aec6f1f..49a22a922 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -687,7 +687,8 @@ endif() # Note: Fuchsia and Windows are not currently supported by GWP-ASan. Support # is planned for these platforms. Darwin is also not supported due to TLS # calling malloc on first use. -if (GWP_ASAN_SUPPORTED_ARCH AND OS_NAME MATCHES "Android|Linux") +if (COMPILER_RT_HAS_SANITIZER_COMMON AND GWP_ASAN_SUPPORTED_ARCH AND + OS_NAME MATCHES "Android|Linux") set(COMPILER_RT_HAS_GWP_ASAN TRUE) else() set(COMPILER_RT_HAS_GWP_ASAN FALSE) |