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

Unified Diff: build/config/mac/BUILD.gn

Issue 2092133002: [Mac/GN] Add missing -Wobjc-missing-property-synthesis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to chromium_code. Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/BUILD.gn
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn
index 72ba5aa7af203447b8c77fe346479e8da5f1287f..dcc86f4d2241aa513e0aec8b25aaac744870c4f6 100644
--- a/build/config/mac/BUILD.gn
+++ b/build/config/mac/BUILD.gn
@@ -64,6 +64,14 @@ config("runtime_library") {
asmflags = common_flags
cflags = common_flags
ldflags = common_flags
+
+ if (is_mac) {
+ # Prevent Mac OS X AssertMacros.h from defining macros that collide
+ # with common names, like 'check', 'require', and 'verify'.
+ # (Included by system header. Also exists on iOS but not included.)
+ # http://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/AssertMacros.h
+ defines = [ "__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0" ]
+ }
}
# On Mac, this is used for everything except static libraries.
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698