Skip to content

Commit

Permalink
Help CMake differentiate bewteen Clang, IntelLLVM and CCELLVM. (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticTheory authored Sep 26, 2021
1 parent 7d6562c commit 54ca36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/unix-clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if(NOT CXX_FLAGS_INITIALIZED)

# OneAPI on trinitite reports itself as "LLVM" and parses this file. The Intel optimizer needs
# these options to maintain IEEE 754 compliance.
if(CMAKE_CXX_COMPILER_WRAPPER STREQUAL CrayPrgEnv)
if(CMAKE_CXX_COMPILER_WRAPPER STREQUAL CrayPrgEnv AND INTEL_COMPILER_TYPE STREQUAL "ONEAPI")
string(APPEND CMAKE_C_FLAGS_RELEASE " -fp-model=precise")
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO " -fp-model=precise")
endif()
Expand Down

0 comments on commit 54ca36d

Please sign in to comment.