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

Unified Diff: build/common.gypi

Issue 397032: linux: set a compiler flag that drops the eh_frame section (Closed)
Patch Set: Created 11 years, 1 month 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/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 64bbd6394ea80d7e263ccead8aa19b4fe96b62f6..01136dca86645cfc7ff178f8a73b903558907aad 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -500,7 +500,11 @@
'cflags': [
'<(werror)', # See note above about the werror variable.
'-pthread',
+ # We don't use exceptions. By disabling exceptions
+ # (and asynchronous-unwind-tables), we shave off 2.5mb from
+ # our resulting binary by not including the eh_frame section.
'-fno-exceptions',
+ '-fno-asynchronous-unwind-tables',
'-fvisibility=hidden',
'-Wall',
'-D_FILE_OFFSET_BITS=64',
« 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