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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 'variables': { 9 'variables': {
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 'target_defaults': { 493 'target_defaults': {
494 # Enable -Werror by default, but put it in a variable so it can 494 # Enable -Werror by default, but put it in a variable so it can
495 # be disabled in ~/.gyp/include.gypi on the valgrind builders. 495 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
496 'variables': { 496 'variables': {
497 'werror%': '-Werror', 497 'werror%': '-Werror',
498 'no_strict_aliasing%': 0, 498 'no_strict_aliasing%': 0,
499 }, 499 },
500 'cflags': [ 500 'cflags': [
501 '<(werror)', # See note above about the werror variable. 501 '<(werror)', # See note above about the werror variable.
502 '-pthread', 502 '-pthread',
503 # We don't use exceptions. By disabling exceptions
504 # (and asynchronous-unwind-tables), we shave off 2.5mb from
505 # our resulting binary by not including the eh_frame section.
503 '-fno-exceptions', 506 '-fno-exceptions',
507 '-fno-asynchronous-unwind-tables',
504 '-fvisibility=hidden', 508 '-fvisibility=hidden',
505 '-Wall', 509 '-Wall',
506 '-D_FILE_OFFSET_BITS=64', 510 '-D_FILE_OFFSET_BITS=64',
507 ], 511 ],
508 'cflags_cc': [ 512 'cflags_cc': [
509 '-fno-rtti', 513 '-fno-rtti',
510 '-fno-threadsafe-statics', 514 '-fno-threadsafe-statics',
511 # Make inline functions have hidden visiblity by default. 515 # Make inline functions have hidden visiblity by default.
512 # Surprisingly, not covered by -fvisibility=hidden. 516 # Surprisingly, not covered by -fvisibility=hidden.
513 '-fvisibility-inlines-hidden', 517 '-fvisibility-inlines-hidden',
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 # and therefore SYMROOT, needs to be set at the project level. 979 # and therefore SYMROOT, needs to be set at the project level.
976 'SYMROOT': '<(DEPTH)/xcodebuild', 980 'SYMROOT': '<(DEPTH)/xcodebuild',
977 }, 981 },
978 } 982 }
979 983
980 # Local Variables: 984 # Local Variables:
981 # tab-width:2 985 # tab-width:2
982 # indent-tabs-mode:nil 986 # indent-tabs-mode:nil
983 # End: 987 # End:
984 # vim: set expandtab tabstop=2 shiftwidth=2: 988 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« 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