Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3094)

Unified Diff: build/SConscript.main

Issue 13337: Support gprof and symbols options to the Linux build. (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/SConscript.main
diff --git a/build/SConscript.main b/build/SConscript.main
index 0fb14d42bf638b37b96e7f589ae979ce1765ca4a..6af08a901c94c2c406cebc2f42531959849bf18a 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -468,6 +468,15 @@ if ARGUMENTS.get('COVERAGE') == '1':
linux_env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage'])
linux_env.Append(LINKFLAGS=['-fprofile-arcs'])
+# Build with support for gprof when PROFILE=1.
+if ARGUMENTS.get('PROFILE') == '1':
+ linux_env.Append(CCFLAGS=['-pg', '-g'])
+ linux_env.Append(LINKFLAGS=['-pg'])
+
+# Build with symbols (useful for opt builds, for example) when SYMBOLS=1.
+if ARGUMENTS.get('SYMBOLS') == '1':
+ linux_env.Append(CCFLAGS=['-g'])
+
# Build with system-provided NSS and GTK.
if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']:
try:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698