[flang-commits] [flang] a5cd19f - [flang] Fix gcc-triple.f90 test on Darwin (#171690)
via flang-commits
flang-commits at lists.llvm.org
Thu Dec 11 04:49:24 PST 2025
Author: Leandro Lupori
Date: 2025-12-11T09:49:20-03:00
New Revision: a5cd19f53f51c8be1c8d1994a664497a0ed38d12
URL: https://github.com/llvm/llvm-project/commit/a5cd19f53f51c8be1c8d1994a664497a0ed38d12
DIFF: https://github.com/llvm/llvm-project/commit/a5cd19f53f51c8be1c8d1994a664497a0ed38d12.diff
LOG: [flang] Fix gcc-triple.f90 test on Darwin (#171690)
On Darwin an explicit Linux target must be set to make
`Selected GCC installation:` appear in the output.
Added:
Modified:
flang/test/Driver/gcc-triple.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/gcc-triple.f90 b/flang/test/Driver/gcc-triple.f90
index 3aacb84bfd227..95a0b3b375f17 100644
--- a/flang/test/Driver/gcc-triple.f90
+++ b/flang/test/Driver/gcc-triple.f90
@@ -10,9 +10,9 @@
! DEFAULT_TRIPLE: {{^}}Selected GCC installation:
! DEFAULT_TRIPLE: fedora_39_tree/usr/lib/gcc/x86_64-linux-gnu/13
-! RUN: %flang -v --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-redhat-linux 2>&1 | FileCheck %s --check-prefix=TRIPLE_EXISTS
+! RUN: %flang --target=x86_64-redhat-linux-gnu -v --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-redhat-linux 2>&1 | FileCheck %s --check-prefix=TRIPLE_EXISTS
! TRIPLE_EXISTS: {{^}}Selected GCC installation:
! TRIPLE_EXISTS: fedora_39_tree/usr/lib/gcc/x86_64-redhat-linux/13
-! RUN: %flang -v --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-foo-linux 2>&1 | FileCheck %s --check-prefix=TRIPLE_DOES_NOT_EXISTS
-! TRIPLE_DOES_NOT_EXISTS-NOT: x86_64-foo-linux
\ No newline at end of file
+! RUN: %flang --target=x86_64-redhat-linux-gnu -v --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-foo-linux 2>&1 | FileCheck %s --check-prefix=TRIPLE_DOES_NOT_EXISTS
+! TRIPLE_DOES_NOT_EXISTS-NOT: x86_64-foo-linux
More information about the flang-commits
mailing list