This patch ensures that the locally built version of flang when building in-tree. find_program sometimes used the wrong executable if a different copy of flang was installed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
didn't the docs say something about specifying a flang compiler via cmake? Is that still a thing?
Comment Actions
If you're building out of tree, you can specify where flang by setting OPENMP_TEST_Fortran_COMPILER manually. The first version of this patch attempted to check if flang was present by reading the LLVM_ENABLE_PROJECTS value, but that didn't work as intended. That value was always blank when the tests were being built.
Comment Actions
This only applies if the project is built in-tree. A compiler can be specified in a standalone build.