Issue 208924
Summary flang-rt unittest build error when cross-compiling
Labels
Assignees
Reporter zqb-all
    When cross-compiling LLVM with flang enabled, flang-rt is enabled automatically. However, building the flang-rt tests results in a compilation error:

```
CMake Error at build/build-llvm-linux/lib/cmake/llvm/LLVMExports.cmake:62
(set_target_properties):
The link interface of target "LLVMSupport" contains:
ZLIB::ZLIB
but the target was not found.
```

As discussed in https://github.com/riscv-collab/riscv-gnu-toolchain/pull/1874, the current workaround is to disable the unittests by setting FLANG_RT_INCLUDE_TESTS=OFF.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to