From 0b722a8dba573f10dda1436d618988f7a36080c0 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 17 Apr 2020 14:04:04 -0400 Subject: [PATCH] [libc++] Translate the modules-support Lit feature to the DSL --- libcxx/utils/libcxx/test/config.py | 1 - libcxx/utils/libcxx/test/features.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index dad4496..db640ab 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -869,7 +869,6 @@ class Configuration(object): '-fmodules is enabled but not supported by the compiler') if not supports_modules: return - self.config.available_features.add('modules-support') module_cache = os.path.join(self.config.test_exec_root, 'modules.cache') module_cache = os.path.realpath(module_cache) diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py index 7bdb921..5332d1e 100644 --- a/libcxx/utils/libcxx/test/features.py +++ b/libcxx/utils/libcxx/test/features.py @@ -31,6 +31,7 @@ features = [ sys.platform.lower().strip() == 'darwin'), # TODO: this doesn't handle cross-compiling to Apple platforms. Feature(name='objective-c++', when=lambda cfg: hasCompileFlag(cfg, '-xobjective-c++ -fobjc-arc')), Feature(name='diagnose-if-support', when=lambda cfg: hasCompileFlag(cfg, '-Wuser-defined-warnings'), compileFlag='-Wuser-defined-warnings'), + Feature(name='modules-support', when=lambda cfg: hasCompileFlag(cfg, '-fmodules')), Feature(name='apple-clang', when=_isAppleClang), Feature(name=lambda cfg: 'apple-clang-{__clang_major__}'.format(**compilerMacros(cfg)), when=_isAppleClang), -- 2.7.4