mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
Fix issues with UBSAN test configuration.
On Apple the test feature 'sanitizer-new-delete' was incorrectly getting added to the LIT feature set, which mistakenly caused tests to be disabled when using UBSAN (the feature is only needed with ASAN/MSAN/TSAN). llvm-svn: 307518
This commit is contained in:
parent
cc859306f4
commit
766233b153
@ -16,7 +16,7 @@
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
|
||||
// The sanitizers replace new/delete with versions that do not throw bad_alloc.
|
||||
// UNSUPPORTED: sanitizer-new-delete, ubsan
|
||||
// UNSUPPORTED: sanitizer-new-delete
|
||||
|
||||
|
||||
#include <experimental/dynarray>
|
||||
|
@ -169,10 +169,6 @@ class DarwinLocalTI(DefaultTargetInfo):
|
||||
# should be available in libc++ directly.
|
||||
return False
|
||||
|
||||
def add_sanitizer_features(self, sanitizer_type, features):
|
||||
if sanitizer_type == 'Undefined':
|
||||
features.add('sanitizer-new-delete')
|
||||
|
||||
|
||||
class FreeBSDLocalTI(DefaultTargetInfo):
|
||||
def __init__(self, full_config):
|
||||
|
Loading…
Reference in New Issue
Block a user