summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
committerLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
commitd6b15fc92cb30cfc346fe28379d0aa8a24cbf601 (patch)
treeb37e5c9851595ce5111438498a219d467720dd6e /build
parent2373da22a2e754ae9b0e7d913da0ce2e925f76a0 (diff)
downloadpdfium-d6b15fc92cb30cfc346fe28379d0aa8a24cbf601.tar.xz
Define NDEBUG for Release builds.
Also fix -Wunused warnings as a result of this change. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1717063002 .
Diffstat (limited to 'build')
-rw-r--r--build/standalone.gypi3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 364c8d86f9..f0ab3a9567 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -82,7 +82,7 @@
'-fdata-sections',
'-ffunction-sections',
],
- 'defines': ['_DEBUG=1',],
+ 'defines': ['_DEBUG'],
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '0',
@@ -112,6 +112,7 @@
'cflags': [
'-fno-strict-aliasing',
],
+ 'defines': ['NDEBUG'],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
'GCC_STRICT_ALIASING': 'NO',