Chromium Code Reviews| Index: build/config/compiler/BUILD.gn |
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
| index ab999379567c3130756d96387cac592a59b449e9..c4db7551a667e8d0bd5f7a559963ea65fdd9e8e2 100644 |
| --- a/build/config/compiler/BUILD.gn |
| +++ b/build/config/compiler/BUILD.gn |
| @@ -71,11 +71,12 @@ config("compiler") { |
| common_mac_flags += [ "-arch i386" ] |
| } |
| - cflags += common_mac_flags + [ |
| - # Without this, the constructors and destructors of a C++ object inside |
| - # an Objective C struct won't be called, which is very bad. |
| - "-fobjc-call-cxx-cdtors", |
| - ] |
| + cflags += common_mac_flags |
| + |
| + # Without this, the constructors and destructors of a C++ object inside |
| + # an Objective C struct won't be called, which is very bad. |
| + cflags_objc = [ "-fobjc-call-cxx-cdtors", ] |
| + cflags_objccc = [ "-fobjc-call-cxx-cdtors", ] |
|
Nico
2014/02/14 23:50:43
cflags_objccc should be cflags_objcc (one less c),
|
| cflags_c += [ "-std=c99" ] |
| cflags_cc += [ "-std=gnu++11" ] |