[flang-commits] [flang] [flang] Build a dedicated fir-test-opt for testing (PR #123473)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 20 02:09:07 PST 2025


https://github.com/jeanPerier commented:

I agree with @clementval. fir-opt main goal is being a test/development tool, so having an extra tool is weird.

MLIR also has an `MLIR_INCLUDE_TESTS` cmake option that controls mlir-opt linked libraries (see) https://github.com/llvm/llvm-project/blob/1be64c27f1773e7cc87f9a7efdf5bab36c6beaf5/mlir/tools/mlir-opt/CMakeLists.txt#L14C4-L14C22

It's default value is the one of `LLVM_INCLUDE_TESTS` ([set here](https://github.com/llvm/llvm-project/blob/1be64c27f1773e7cc87f9a7efdf5bab36c6beaf5/mlir/CMakeLists.txt#L145
)).

Are you also setting  `LLVM_INCLUDE_TESTS`  (or `MLIR_INCLUDE_TESTS`) to ON when building for packages?

https://github.com/llvm/llvm-project/pull/123473


More information about the flang-commits mailing list