-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[LLVM][compiler-rt] Fix build with LLVM_USE_SANITIZER=Undefined #120006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1064,7 +1064,8 @@ if(LLVM_USE_SANITIZER) | |
| if (LLVM_USE_SANITIZE_COVERAGE) | ||
| append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) | ||
| endif() | ||
| if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*") | ||
| if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*" AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND | ||
| CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
|
||
| set(IGNORELIST_FILE "${PROJECT_SOURCE_DIR}/utils/sanitizers/ubsan_ignorelist.txt") | ||
| if (EXISTS "${IGNORELIST_FILE}") | ||
| # Use this option name version since -fsanitize-ignorelist is only | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need COMPILER_RT_HAS_SANITIZER_COMMON for GWP_ASAN_SUPPORTED_ARCH?
It should not be a dependency.