From dbc47ae383d956ddbe419d5bff45763e2b74f166 Mon Sep 17 00:00:00 2001 From: Amir Shalem Date: Mon, 18 Dec 2017 11:26:22 -0800 Subject: [PATCH] Disable assert code in release builds (define DNDEBUG) Summary: Disable assert code in release builds (define DNDEBUG). This disables assertions in Facebook JNI library - which checks that our references to Yoga JNI objects are correct. This saves CPU time, since those checks are costly. Reviewed By: emilsjolander Differential Revision: D6592023 fbshipit-source-id: eaf869c7990cab3a72ae2bbdc67e709153f5020c --- mode/opt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/opt b/mode/opt index 94502819..6db2b79c 100644 --- a/mode/opt +++ b/mode/opt @@ -1,4 +1,4 @@ --config -cxx.cxxflags=-O3 +cxx.cxxflags=-O3 -DNDEBUG --config -cxx.cflags=-O3 +cxx.cflags=-O3 -DNDEBUG