forked from OSchip/llvm-project
[libc++] Translate the modules-support Lit feature to the DSL
This commit is contained in:
parent
c85eda74b8
commit
0b722a8dba
|
@ -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)
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue