[Flang-RT] Add test dependency (#174427)

When building with `FLANG_RUNTIME_F128_MATH_LIB=libquadmath`, the tests
```
  flang-rt :: Driver/ctofortran.f90
  flang-rt :: Driver/exec.f90
```
also depend on `libflang_rt.quadmath.a`. Add a dependency to ensure it
is built with `ninja check-flang-rt`.
This commit is contained in:
Michael Kruse 2026-01-05 17:07:17 +01:00 committed by GitHub
parent 86b0acd35f
commit 75d8654c67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,11 @@ set_target_properties(flang-rt-test-depends PROPERTIES FOLDER "Flang-RT/Meta")
add_dependencies(flang-rt-test-depends
flang_rt.runtime
)
if (TARGET flang_rt.quadmath)
add_dependencies(flang-rt-test-depends
flang_rt.quadmath
)
endif ()
add_lit_testsuite(check-flang-rt "Running the Flang-RT regression tests"
${CMAKE_CURRENT_BINARY_DIR}