Skip to content

Commit

Permalink
Merge pull request #1281 from srcejon/fast_math
Browse files Browse the repository at this point in the history
Disable NAN and INF optimisations on Linux
  • Loading branch information
f4exb committed Jun 6, 2022
2 parents dfc166f + 9052694 commit 6b842f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(WIN32)
endif()

if(NOT MSVC)
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -ftree-vectorize)
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -fno-finite-math-only -ftree-vectorize)
endif()

if (SANITIZE_ADDRESS)
Expand Down

0 comments on commit 6b842f0

Please sign in to comment.