forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some build symbol configuration.
Remove -gdwarf-4 from GYP build. This is the default for GCC 4.8 which is now required, so this command-line argument is redundant. Only set use_debug_fission in the GN build in debug mode. This matches GYP. Release mode symbols will be non-fission. Implement linux_symbols target in GN. Convert dump_app_syms from sh to Python for better GN usability, and it's more readable for normal programmers on the team. Reland of https://codereview.chromium.org/1179393004/ TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1182663007 Cr-Commit-Position: refs/heads/master@{#334690}
- Loading branch information
brettw
authored and
Commit bot
committed
Jun 16, 2015
1 parent
c525abe
commit 07d847b
Showing
6 changed files
with
71 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# Helper script to run dump_syms on Chrome Linux executables and strip | ||
# them if needed. | ||
|
||
import os | ||
import subprocess | ||
import sys | ||
|
||
if len(sys.argv) != 5: | ||
print "dump_app_syms.py <dump_syms_exe> <strip_binary>" | ||
print " <binary_with_symbols> <symbols_output>" | ||
sys.exit(1) | ||
|
||
dumpsyms = sys.argv[1] | ||
strip_binary = sys.argv[2] | ||
infile = sys.argv[3] | ||
outfile = sys.argv[4] | ||
|
||
# Dump only when the output file is out-of-date. | ||
if not os.path.isfile(outfile) or \ | ||
os.stat(outfile).st_mtime > os.stat(infile).st_mtime: | ||
with open(outfile, 'w') as outfileobj: | ||
subprocess.check_call([dumpsyms, '-r', infile], stdout=outfileobj) | ||
|
||
if strip_binary != '0': | ||
subprocess.check_call(['strip', infile]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters