Michael Kruse 27539c3f90 Revert "[Flang] Remove FLANG_INCLUDE_RUNTIME (#124126)"
The production buildbot master apparently has not yet been restarted
since https://github.com/llvm/llvm-zorg/pull/393 landed.

This reverts commit 96d1baedefc3581b53bc4389bb171760bec6f191.
2025-03-26 19:02:13 +01:00

80 lines
1.5 KiB
CMake

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
add_flang_nongtest_unittest(leading-zero-bit-count
NonGTestTesting
)
add_flang_nongtest_unittest(bit-population-count
NonGTestTesting
)
add_flang_nongtest_unittest(uint128
NonGTestTesting
)
add_flang_nongtest_unittest(expression
FortranSupport
NonGTestTesting
FortranEvaluate
FortranSemantics
FortranParser
)
add_flang_nongtest_unittest(integer
NonGTestTesting
FortranEvaluate
FortranSemantics
)
add_flang_nongtest_unittest(intrinsics
FortranSupport
NonGTestTesting
FortranEvaluate
FortranDecimal
FortranSemantics
FortranParser
)
add_flang_nongtest_unittest(logical
NonGTestTesting
FortranEvaluate
FortranSemantics
)
# 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(LLVM_REQUIRES_EH ON)
set(LLVM_REQUIRES_RTTI ON)
add_flang_nongtest_unittest(real
NonGTestTesting
FortranEvaluate
FortranDecimal
FortranSemantics
)
llvm_update_compile_flags(real.test)
if (FLANG_INCLUDE_RUNTIME)
add_flang_nongtest_unittest(reshape
NonGTestTesting
FortranSemantics
FortranEvaluate
flang_rt.runtime
)
add_flang_nongtest_unittest(ISO-Fortran-binding
NonGTestTesting
FortranEvaluate
FortranSemantics
flang_rt.runtime
)
endif ()
add_flang_nongtest_unittest(folding
FortranSupport
NonGTestTesting
FortranEvaluate
FortranSemantics
)