diff options
author | mtklein <mtklein@chromium.org> | 2015-09-09 10:46:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-09 10:46:20 -0700 |
commit | 61a81e39477f881726b0a0565d50018c69155f00 (patch) | |
tree | 7be4abd441929a47dae01ea4b0ce3631a4ca5da7 /gyp | |
parent | 4228c1fa2cec5840abaa50ad6644c89021da10fc (diff) |
Mimic Chrome better in our GYPs.
To match Chrome, make sure we've disabled thread-safe statics, RTTI, and exceptions. Linux needed -fno-threadsafe-statics, Mac needed all three.
Nothing important triggered this CL. I just got confused when I saw exception handling (calls to delete, stack unwinding) in some generated code on my laptop.
BUG=skia:
Review URL: https://codereview.chromium.org/1323533003
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index e1da05053f..44220a3bfd 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -227,6 +227,7 @@ 'cflags_cc': [ '-std=c++11', '-fno-rtti', + '-fno-threadsafe-statics', '-Wnon-virtual-dtor', ], 'conditions': [ @@ -492,6 +493,9 @@ }], ], 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', + 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions + 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti + 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hidden 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-inlines-hidden |