[flang-commits] [clang] [flang] [flang][driver] Bring --gcc-triple to flang (PR #165886)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Tue Nov 4 03:19:23 PST 2025
tarunprabhu wrote:
Apologies for missing this. I tried running `clang` with `-###` and got this:
```
$ ./bin/clang -### -v --sysroot=/path/to/llvm-project/clang/test/Driver/Inputs/fedora_39_tree
clang version 22.0.0git
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /path/to/bin
Build config: +assertions
Found candidate GCC installation: /path/to/llvm-project/clang/test/Driver/Inputs/fedora_39_tree/usr/lib/gcc/x86_64-linux-gnu/13
Found candidate GCC installation: /path/to/llvm-project/clang/test/Driver/Inputs/fedora_39_tree/usr/lib/gcc/x86_64-redhat-linux/13
Selected GCC installation: /path/to/llvm-project/clang/test/Driver/Inputs/fedora_39_tree/usr/lib/gcc/x86_64-linux-gnu/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
```
This might be a better approach since it doesn't require either a `REQUIRES` directive, or an explicit target triple. The absence of the latter makes it clear that we are checking for the default behavior. This should also just work with `flang`, but I can check later today.
https://github.com/llvm/llvm-project/pull/165886
More information about the flang-commits
mailing list