Backed out changeset b80d14f72e5b (bug 1563204) build bustges on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2019-07-25 17:13:14 +03:00
parent cedcaf443c
commit 08dfeb92cf

View File

@ -1548,16 +1548,10 @@ js_option('--enable-lto',
choices=('full', 'thin', 'cross'),
help='Enable LTO')
js_option(env='MOZ_LD64_KNOWN_GOOD',
nargs=1,
help='Indicate that ld64 is free of symbol aliasing bugs.')
imply_option('MOZ_LD64_KNOWN_GOOD', depends_if('MOZ_AUTOMATION')(lambda _: True))
@depends('--enable-lto', 'MOZ_PGO', '--enable-profile-generate', c_compiler,
'MOZ_LD64_KNOWN_GOOD')
@depends('--enable-lto', 'MOZ_PGO', '--enable-profile-generate', c_compiler)
@imports('multiprocessing')
def lto(value, pgo, profile_generate, c_compiler, ld64_known_good):
def lto(value, pgo, profile_generate, c_compiler):
cflags = []
ldflags = []
enabled = None
@ -1578,13 +1572,6 @@ def lto(value, pgo, profile_generate, c_compiler, ld64_known_good):
rust_lto = True
value = ['thin']
if target.kernel == 'Darwin' and target.os == 'OSX' \
and value[0].lower() == 'cross' and not ld64_known_good:
die('The Mac linker is known to have a bug that affects cross-language '
'LTO. If you know that your linker is free from this bug, please '
'set the environment variable `MOZ_LD64_KNOWN_GOOD=1` and re-run '
'configure.')
if c_compiler.type == 'clang':
if len(value) and value[0].lower() == 'full':
cflags.append("-flto")