mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 18:42:36 +00:00
test: Be consistent with clang's sanitizer lit config
The logic that sets up lit features for sanitizers is largely copied between here and clang, except clang's was fixed some time ago to handle multiple sanitizers (ie, Asan + Ubsan). This just makes the code in LLVM consistent with how it's done in clang to avoid any gotchas by users of this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad092ca1c9
commit
bc88e8bed4
@ -339,14 +339,15 @@ if loadable_module:
|
||||
config.available_features.add('loadable_module')
|
||||
|
||||
# Sanitizers.
|
||||
if config.llvm_use_sanitizer == "Address":
|
||||
if 'Address' in config.llvm_use_sanitizer:
|
||||
config.available_features.add("asan")
|
||||
if (config.llvm_use_sanitizer == "Memory" or
|
||||
config.llvm_use_sanitizer == "MemoryWithOrigins"):
|
||||
else:
|
||||
config.available_features.add("not_asan")
|
||||
if 'Memory' in config.llvm_use_sanitizer:
|
||||
config.available_features.add("msan")
|
||||
else:
|
||||
config.available_features.add("not_msan")
|
||||
if config.llvm_use_sanitizer == "Undefined":
|
||||
if 'Undefined' in config.llvm_use_sanitizer:
|
||||
config.available_features.add("ubsan")
|
||||
else:
|
||||
config.available_features.add("not_ubsan")
|
||||
|
Loading…
x
Reference in New Issue
Block a user