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

Jannik Glückert via flang-commits flang-commits at lists.llvm.org
Mon Jan 20 09:27:19 PST 2025


Jannik2099 wrote:

> Anyway if you want to package flang you probably don't want FLANG_INCLUDE_TESTS to be set. That's smth you want for development of the compiler, not really for an install.

This isn't how the vast majority of software behaves, where enabling tests does not affect the codegen of the to-be-installed build artifacts.

It's not just an issue for source distros like Gentoo, but really every linux distribution and in-house user of flang. It means that every release pipeline has to build flang twice just to run the tests (which many distros generally do for all packages)

I'm aware that `fir-opt` is mainly used in flang development, but if you do a quick github search you'll find that dozens of distributions and other software providers have it listed in package BOMs / summaries and similar, meaning it's been distributed to users for a while now.

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


More information about the flang-commits mailing list