author Mike Hommey <>
Tue, 28 Aug 2018 22:12:01 +0900
changeset 488825 2b045052d4aad4e77f3b8fce35a40efeed4e19f1
parent 475767 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
Bug 1485759 - Pass --build-id=sha1 to the linker instead of --build-id. r=froydnj BFD ld's --build-id means --build-id=sha1, but with lld it means --build-id=fast. Both support the explicit --build-id=sha1, so use that. Gold supports --build-id=sha1 too. ld64, used for mac builds doesn't support neither --build-id=sha1 nor --build-id.

#!/usr/bin/env python
# This exists to paper over differences between gyp's `action` definitions
# and `GENERATED_FILES` semantics.

import buildconfig
import os
import subprocess

def main(output, *inputs):
    env = dict(os.environ)
    env['PERL'] = str(buildconfig.substs['PERL'])
                                          inputs[0], inputs[2]], env=env))
    return None