[flang] Force -fexceptions for real arithmetic tests

Original-commit: flang-compiler/f18@532dd3b6df
Reviewed-on: https://github.com/flang-compiler/f18/pull/503
This commit is contained in:
peter klausler 2019-06-18 15:32:20 -07:00
parent 7d24cebc17
commit b6a1fdf5e0
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ target_link_libraries(logical-test
FortranEvaluate
)
# GCC -fno-exceptions breaks the fenv.h interfaces needed to capture
# IEEE exception flags (different use of the word "exception")
# in the actual hardware floating-point status register, so ensure that
# C++ exceptions are enabled for this test.
set_source_files_properties(real.cc PROPERTIES COMPILE_FLAGS -fexceptions)
add_executable(real-test
real.cc
)