[libc++] Translate the modules-support Lit feature to the DSL

This commit is contained in:
Louis Dionne 2020-04-17 14:04:04 -04:00
parent c85eda74b8
commit 0b722a8dba
2 changed files with 1 additions and 1 deletions

View File

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

View File

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