aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-diff/lib/DifferenceEngine.h
diff options
context:
space:
mode:
authorKonrad Kleine <kkleine@redhat.com>2025-11-03 17:00:06 +0100
committerGitHub <noreply@github.com>2025-11-03 16:00:06 +0000
commitbf5332cd8266cddb3bfb2e8436a2161c10602855 (patch)
treee5205d241f90ecca62b436609a61903b1112207c /llvm/tools/llvm-diff/lib/DifferenceEngine.h
parent3bd59634d2d21328e32c06ecd6a7a1188a1b1993 (diff)
downloadllvm-bf5332cd8266cddb3bfb2e8436a2161c10602855.zip
llvm-bf5332cd8266cddb3bfb2e8436a2161c10602855.tar.gz
llvm-bf5332cd8266cddb3bfb2e8436a2161c10602855.tar.bz2
[flang][driver] Bring --gcc-triple to flang (#165886)
When there are multiple gcc versions installed, we want `flang` to be able to find the right one based on the triple. Here's `flang` selecting an unwanted `gcc` candidate installation, namely `/usr/lib/gcc/x86_64-linux-gnu/15`: ``` ~/src/llvm-project/main/build-RelWithDebInfo > ./bin/flang -v flang version 22.0.0custombuild Target: x86_64-redhat-linux-gnu Thread model: posix InstalledDir: /home/fedora/src/llvm-project/main/build-RelWithDebInfo/bin System configuration file directory: /etc/clang/ Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/15 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/15 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/15 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 ``` When passing `--gcc-triple=x86_64-redhat-linux` we get the desired gcc candidate installation: ``` ~/src/llvm-project/main/build-RelWithDebInfo > ./bin/flang --gcc-triple=x86_64-redhat-linux -v flang version 22.0.0custombuild Target: x86_64-redhat-linux-gnu Thread model: posix InstalledDir: /home/fedora/src/llvm-project/main/build-RelWithDebInfo/bin System configuration file directory: /etc/clang/ Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/15 Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/15 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 ``` * Test: `LIT_FILTER="Flang :: Driver/gcc-triple.f90" ninja check-flang` * Copied `flang/test/Driver/Inputs/fedora_39_tree` from `clang/test/Driver/Inputs/fedora_39_tree`. * Testing what default triple is selected when two are possible. * Testing that we can select an existing triple. * Testing that triple is not selected if it doesn't exist.
Diffstat (limited to 'llvm/tools/llvm-diff/lib/DifferenceEngine.h')
0 files changed, 0 insertions, 0 deletions