Add buck mode/opt compile file to support release compilation mode

Summary:
Currently we have `-O3` hardcoded inside our BUCK target files, this will allow us afterwards to remove that.
Follow up commit will also add `-DNDEBUG` which will disable `assert` in release builds.

Reviewed By: emilsjolander

Differential Revision: D6592024

fbshipit-source-id: f541ee8728ff44db8e31885f2085dc036a400f70
This commit is contained in:
Amir Shalem
2017-12-18 11:26:20 -08:00
committed by Facebook Github Bot
parent 2a10337344
commit f22cfd52e0

4
mode/opt Normal file
View File

@@ -0,0 +1,4 @@
--config
cxx.cxxflags=-O3
--config
cxx.cflags=-O3