From f22cfd52e0b53cb3e3521ad1480389d616b4fa3e Mon Sep 17 00:00:00 2001 From: Amir Shalem Date: Mon, 18 Dec 2017 11:26:20 -0800 Subject: [PATCH] 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 --- mode/opt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 mode/opt diff --git a/mode/opt b/mode/opt new file mode 100644 index 00000000..94502819 --- /dev/null +++ b/mode/opt @@ -0,0 +1,4 @@ +--config +cxx.cxxflags=-O3 +--config +cxx.cflags=-O3