Disable ffast-math for Intel compiler

This commit is contained in:
Andrei Gorneanu 2022-07-07 17:36:26 +02:00
parent 3a0444b569
commit 35f693b238
1 changed files with 5 additions and 0 deletions

View File

@ -14,3 +14,8 @@ if(NOT WIN32)
target_compile_definitions(sqlite PRIVATE $<$<CONFIG:Debug>:NDEBUG>)
target_compile_options(sqlite BEFORE PRIVATE -w) # disable warnings for third party
endif()
# SQLite won't build with -ffast-math
if(ICX)
target_compile_options(sqlite PRIVATE -fno-fast-math)
endif()