[flang-commits] [flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Tue Jan 30 10:28:09 PST 2024


luporl wrote:

It looks like `--sysroot=` is already supported by flang-new. It worked fine in my tests. Just like clang, it doesn't show up in `--help` or `--help-hidden`, for some reason I'm not aware.

I noticed, however, that using `--sysroot` doesn't work:
`flang-new: error: unknown argument '--sysroot'`

Interestingly enough, some other flags also show the same issue, such as `--verbose`:
`flang-new: error: unknown argument: '--verbose'`

My hunch is that option aliases are not working properly with flang-new, when `Visibility` is omitted.

Anyone knows if this is expected and `Visibility` should be explicitly specified in each alias, to add support to flang-new, or is this an issue and the alias should have the same visibility as the original option?

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


More information about the flang-commits mailing list