Skip to content

Commit

Permalink
Fix build error with IntelLLVM compiler (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskunk authored Jan 9, 2024
1 parent 132d0ba commit ecb8936
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,13 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
set(FLAGS_ENABLE_AVX512FNOFMA "-xCOMMON-AVX512")
set(FLAGS_ENABLE_PURECFMA_SCALAR "-march=core-avx2;-fno-strict-aliasing")
set(FLAGS_ENABLE_FMA4 "-msse2") # This is a dummy flag
set(FLAGS_STRICTMATH "-fp-model strict -Qoption,cpp,--extended_float_type")
set(FLAGS_FASTMATH "-fp-model fast=2 -Qoption,cpp,--extended_float_type")
if(CMAKE_C_COMPILER_ID MATCHES "IntelLLVM")
set(FLAGS_STRICTMATH "-fp-model strict -Qoption,cpp,--extended_float_types")
set(FLAGS_FASTMATH "-fp-model fast -Qoption,cpp,--extended_float_types")
else()
set(FLAGS_STRICTMATH "-fp-model strict -Qoption,cpp,--extended_float_type")
set(FLAGS_FASTMATH "-fp-model fast=2 -Qoption,cpp,--extended_float_type")
endif()
set(FLAGS_NOSTRICTALIASING "-fno-strict-aliasing")
set(FLAGS_WALL "-fmax-errors=3 -Wall -Wno-unused -Wno-attributes")

Expand Down

0 comments on commit ecb8936

Please sign in to comment.