diff options
Diffstat (limited to 'utils/libcxx/test')
-rw-r--r-- | utils/libcxx/test/config.py | 5 | ||||
-rw-r--r-- | utils/libcxx/test/target_info.py | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py index 96b3df55ede7..2ee41924fe13 100644 --- a/utils/libcxx/test/config.py +++ b/utils/libcxx/test/config.py @@ -440,6 +440,9 @@ class Configuration(object): # C++17 aligned allocation. self.config.available_features.add('no-aligned-allocation') + if self.cxx.hasCompileFlag('-fdelayed-template-parsing'): + self.config.available_features.add('fdelayed-template-parsing') + if self.get_lit_bool('has_libatomic', False): self.config.available_features.add('libatomic') @@ -888,6 +891,7 @@ class Configuration(object): self.cxx.addWarningFlagIfSupported('-Wno-c++11-extensions') self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals') self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type') + self.cxx.addWarningFlagIfSupported('-Wno-aligned-allocation-unavailable') # These warnings should be enabled in order to support the MSVC # team using the test suite; They enable the warnings below and # expect the test suite to be clean. @@ -1015,6 +1019,7 @@ class Configuration(object): cxx_path = pipes.quote(self.cxx.path) # Configure compiler substitutions sub.append(('%cxx', cxx_path)) + sub.append(('%libcxx_src_root', self.libcxx_src_root)) # Configure flags substitutions flags_str = ' '.join([pipes.quote(f) for f in self.cxx.flags]) compile_flags_str = ' '.join([pipes.quote(f) for f in self.cxx.compile_flags]) diff --git a/utils/libcxx/test/target_info.py b/utils/libcxx/test/target_info.py index b3bbc0088542..e6fde900cf70 100644 --- a/utils/libcxx/test/target_info.py +++ b/utils/libcxx/test/target_info.py @@ -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): |