Skip to content

Commit 94a36dd

Browse files
committed
fixup! [Analysis] Ensure use of strict fp exceptions in ConstantFolding
1 parent 8cc14b4 commit 94a36dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endif()
3030
# handled correctly.
3131
if (MSVC)
3232
set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "/fp:except")
33-
else()
33+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
3434
set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "-ffp-exception-behavior=strict")
3535
endif()
3636

0 commit comments

Comments
 (0)