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 | 2e207d4d76dfc9c3b9e1d039df4f27bd9ca30076 (patch) | |
tree | 9903bd1ac50d908ae927b8508c5a5572158fc184 /compiler-rt/cmake | |
parent | 1dce82636c9241b8208abe05ba02e499424338d5 (diff) | |
download | bcm5719-llvm-2e207d4d76dfc9c3b9e1d039df4f27bd9ca30076.tar.gz bcm5719-llvm-2e207d4d76dfc9c3b9e1d039df4f27bd9ca30076.zip |
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.
llvm-svn: 362542
Diffstat (limited to 'compiler-rt/cmake')
-rw-r--r-- | compiler-rt/cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 67aec6f1f17..49a22a92227 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/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) |