Chromium Code Reviews| Index: build/common.gypi |
| diff --git a/build/common.gypi b/build/common.gypi |
| index 896245e7f261f383707b59bc7c65c2bd20ce646b..6f2d9d7cb4a024201afc8c71cc5340c36bd0366c 100644 |
| --- a/build/common.gypi |
| +++ b/build/common.gypi |
| @@ -576,6 +576,9 @@ |
| # whether warnings are treated as errors. |
| 'chromium_code%': 0, |
| + # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 |
| + 'enable_wexit_time_destructors%': 0, |
| + |
| # Set to 1 to compile with the built in pdf viewer. |
| 'internal_pdf%': 0, |
| @@ -940,6 +943,9 @@ |
| 'debug_extra_cflags%': '', |
| 'release_valgrind_build%': 0, |
| + # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 |
| + 'enable_wexit_time_destructors%': '<(enable_wexit_time_destructors)', |
| + |
| # Only used by Windows build for now. Can be used to build into a |
| # differet output directory, e.g., a build_dir_prefix of VS2010_ would |
| # output files in src/build/VS2010_{Debug,Release}. |
| @@ -1165,6 +1171,20 @@ |
| }], |
| ], # conditions for 'target_defaults' |
| 'target_conditions': [ |
| + ['enable_wexit_time_destructors==1', { |
|
Mark Mentovai
2011/11/09 17:44:44
Or you could write “and clang==1” here to avoid ha
Nico
2011/11/09 18:16:02
That yields: NameError: name 'clang' is not define
|
| + 'conditions': [ |
| + [ 'clang==1', { |
| + 'cflags': [ |
| + '-Wexit-time-destructors', |
| + ], |
| + 'xcode_settings': { |
| + 'WARNING_CFLAGS': [ |
| + '-Wexit-time-destructors', |
| + ], |
| + }, |
| + }], |
| + ], |
| + }], |
| ['chromium_code==0', { |
| 'conditions': [ |
| [ 'os_posix==1 and OS!="mac"', { |