diff options
author | Brad King <brad.king@kitware.com> | 2022-10-11 19:35:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-11 19:38:48 (GMT) |
commit | 0301779e8532626c106f38e4f8e227c89ba1b158 (patch) | |
tree | 3b4cd5af8acb117c7db937f28dee6d1db829cf61 /Tests/Fortran | |
parent | 5d24e9e09b21b05c7bad67303adbbac0137b51c3 (diff) | |
download | CMake-0301779e8532626c106f38e4f8e227c89ba1b158.zip CMake-0301779e8532626c106f38e4f8e227c89ba1b158.tar.gz CMake-0301779e8532626c106f38e4f8e227c89ba1b158.tar.bz2 |
LLVMFlang: Add support for mixed-language linking with Fortran
Parse implicit link information for this compiler to support
mixed-language linking. This was missed by commit 85749766df
(LLVMFlang: Add support for LLVM Flang, 2021-07-07, v3.24.0-rc1~86^2).
Also activate mixed-language test cases that would have caught this.
Issue: #22387
Diffstat (limited to 'Tests/Fortran')
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index cdc08c4..0fede25 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -123,7 +123,7 @@ endfunction() # if the id's match or the compilers are compatible, then # call the test_fortran_c_interface_module function if("${CMAKE_Fortran_COMPILER_ID}:${CMAKE_C_COMPILER_ID}" MATCHES - "(Intel(LLVM)?:MSVC|Absoft:GNU)" + "(Intel(LLVM)?:MSVC|Absoft:GNU|LLVMFlang:(GNU|Clang))" OR ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "${CMAKE_C_COMPILER_ID}" )) test_fortran_c_interface_module() else() |