1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01: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.

llvm-svn: 270510
This commit is contained in:
Justin Bogner 2016-05-23 23:02:11 +00:00
parent 9184fab6a9
commit c328dd5476

View File

@ -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")