summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-08-05 16:42:29 +0200
committerGard Spreemann <gspr@nonempty.org>2020-08-05 16:42:29 +0200
commit9f88c4c66ab7c8f9d941e279f9126540bbb92023 (patch)
tree281f8011168b57492353058a1ff16d2bf87324cc
parent355ff89d1860f8d928bbc97a542b4560c257b9e6 (diff)
Fast mode.
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 49f6dd1..b109890 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
remove_definitions(-DNDEBUG)
endif()
+if(CMAKE_BUILD_TYPE STREQUAL "Fast")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG -march=native -ffast-math")
+endif()
+
include(TestBigEndian)
test_big_endian(BIG_ENDIAN)
if(BIG_ENDIAN)