enable "unsafe" math optimizations in benchmarks

This commit is contained in:
Hans Dembinski 2019-05-28 23:15:44 +02:00
parent 7a55bf0e29
commit 4d383fae1b

View File

@ -23,7 +23,7 @@ endif()
macro(add_benchmark name)
add_executable(${name} "${name}.cpp")
target_compile_options(${name} PRIVATE -O3 -march=native -fno-exceptions -fno-rtti)
target_compile_options(${name} PRIVATE -O3 -march=native -fno-exceptions -fno-rtti -funsafe-math-optimizations)
target_link_libraries(${name} PRIVATE Boost::histogram benchmark_main)
endmacro()