Partially added minimal-rebuild support for debug info generation. (bug 5227, r=a-very-sad-buildbot)

This commit is contained in:
Asher Baker 2012-03-04 20:01:40 +00:00
parent 545868da38
commit 48738bbae9

View File

@ -260,6 +260,8 @@ class SM:
def StripBinary(self, job, binary):
workFolder = os.path.join(AMBuild.outputFolder, job.workFolder)
src = os.path.join('..', workFolder, binary.binaryFile)
if not binary.NeedsRelink(src):
return;
if AMBuild.target['platform'] == 'linux':
job.AddCommand(ShellCommand('objcopy --only-keep-debug ' + src + ' ' + src + '.dbg'))
job.AddCommand(ShellCommand('objcopy --strip-debug ' + src))