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

Unified Diff: build/config/BUILD.gn

Issue 2770733003: Reland [iOS] Disable NSAssert and GTMDevAssert on release builds. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILD.gn
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index e774b20a1fd74d8301bafae8c179caf4f89cf312..51d68cffe2a3fe771cf7b6ee69196f2419a4a95d 100644
--- a/build/config/BUILD.gn
+++ b/build/config/BUILD.gn
@@ -194,6 +194,12 @@ config("release") {
defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ]
}
}
+
+ if (is_ios) {
+ # Disable NSAssert and GTMDevAssert (from Google Toolbox for Mac). This
+ # follows XCode's default behavior for Release builds.
+ defines += [ "NS_BLOCK_ASSERTIONS=1" ]
+ }
}
# Default libraries ------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698