| Index: native_client_sdk/src/tools/common.mk
|
| diff --git a/native_client_sdk/src/tools/common.mk b/native_client_sdk/src/tools/common.mk
|
| index 4fc67e68f4b9c6bef002e8d39ab32f2ed1cee245..6182faa4b1821b98b7fff30c39a713048528c094 100644
|
| --- a/native_client_sdk/src/tools/common.mk
|
| +++ b/native_client_sdk/src/tools/common.mk
|
| @@ -284,8 +284,11 @@ endif
|
| #
|
| # Common Compile Options
|
| #
|
| +# For example, -DNDEBUG is added to release builds by default
|
| +# so that calls to assert(3) are not included in the build.
|
| +#
|
| ifeq ($(CONFIG),Release)
|
| -POSIX_FLAGS ?= -g -O2 -pthread -MMD
|
| +POSIX_FLAGS ?= -g -O2 -pthread -MMD -DNDEBUG
|
| else
|
| POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG
|
| endif
|
|
|