forked from OSchip/llvm-project
[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:
parent
7d24cebc17
commit
b6a1fdf5e0
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue