diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-08-05 16:42:29 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-08-05 16:42:29 +0200 |
commit | 9f88c4c66ab7c8f9d941e279f9126540bbb92023 (patch) | |
tree | 281f8011168b57492353058a1ff16d2bf87324cc /CMakeLists.txt | |
parent | 355ff89d1860f8d928bbc97a542b4560c257b9e6 (diff) |
Fast mode.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
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) |