Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index ab999379567c3130756d96387cac592a59b449e9..e1b73eec8393416036cadb70a8409a7f3c150b68 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -71,11 +71,11 @@ 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_objcc = [ "-fobjc-call-cxx-cdtors", ] |
cflags_c += [ "-std=c99" ] |
cflags_cc += [ "-std=gnu++11" ] |