mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Backed out changeset b80d14f72e5b (bug 1563204) build bustges on a CLOSED TREE
This commit is contained in:
parent
cedcaf443c
commit
08dfeb92cf
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user