Backed out changeset 2f5aba2e2c09 (bug 1619461) for build bustages at testBug1117235.js on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2020-03-11 16:42:42 +02:00
Родитель 836059f076
Коммит bfc7043d13
2 изменённых файлов: 1 добавлений и 21 удалений

Просмотреть файл

@ -25,23 +25,5 @@ add_old_configure_assignment(
def rust_flags(compile_flags, warning_flags):
return compile_flags + warning_flags
set_config('MOZ_RUST_DEFAULT_FLAGS', rust_flags)
js_option('--disable-new-pass-manager',
help='Use the legacy LLVM pass manager in clang builds')
@depends('--enable-new-pass-manager', c_compiler, host, mozbuild_state_path)
def new_pass_manager_flags(enabled, compiler, host, mozbuild_state_path):
if host.os == 'OSX':
# If we're using Xcode's clang, we can't trust its version number
mozbuild_clang_dir = os.path.join(mozbuild_state_path, 'clang', 'bin')
if os.path.dirname(compiler.compiler) != mozbuild_clang_dir:
return None
if enabled and compiler.version >= '9.0.0':
if compiler.type == 'clang':
return ['-fexperimental-new-pass-manager']
elif compiler.type == 'clang-cl':
return ['-Xclang', '-fexperimental-new-pass-manager']
set_config('MOZ_NEW_PASS_MANAGER_FLAGS', new_pass_manager_flags)

Просмотреть файл

@ -566,8 +566,6 @@ class CompileFlags(TargetCompileFlags):
('MOZBUILD_CFLAGS', None, ('CFLAGS',)),
('MOZBUILD_CXXFLAGS', None, ('CXXFLAGS',)),
('COVERAGE', context.config.substs.get('COVERAGE_CFLAGS'), ('CXXFLAGS', 'CFLAGS')),
('NEWPM', context.config.substs.get('MOZ_NEW_PASS_MANAGER_FLAGS'),
('CXXFLAGS', 'CFLAGS')),
)
TargetCompileFlags.__init__(self, context)