Skip to content

Commit a5cd19f

Browse files
authored
[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.
1 parent 39fcd2c commit a5cd19f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/test/Driver/gcc-triple.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
! DEFAULT_TRIPLE: {{^}}Selected GCC installation:
1111
! DEFAULT_TRIPLE: fedora_39_tree/usr/lib/gcc/x86_64-linux-gnu/13
1212

13-
! RUN: %flang -v --sysroot=%S/Inputs/fedora_39_tree --gcc-triple=x86_64-redhat-linux 2>&1 | FileCheck %s --check-prefix=TRIPLE_EXISTS
13+
! 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
1414
! TRIPLE_EXISTS: {{^}}Selected GCC installation:
1515
! TRIPLE_EXISTS: fedora_39_tree/usr/lib/gcc/x86_64-redhat-linux/13
1616

17-
! 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
18-
! TRIPLE_DOES_NOT_EXISTS-NOT: x86_64-foo-linux
17+
! 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
18+
! TRIPLE_DOES_NOT_EXISTS-NOT: x86_64-foo-linux

0 commit comments

Comments
 (0)