Skip to content

Commit 5d33010

Browse files
authored
[NFC][flang] Fix driver linker tests on Windows (llvm#116667)
1 parent b35f406 commit 5d33010

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/test/Driver/dynamic-linker.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
! GNU-LINKER-OPTIONS-SAME: "-static"
1818
! GNU-LINKER-OPTIONS-SAME: "-rpath" "/path/to/dir"
1919

20-
! RDYNAMIC-LINKER-OPTION: "{{.*}}ld"
20+
! RDYNAMIC-LINKER-OPTION: "{{.*}}ld{{(\.lld)?(\.exe)?}}"
2121
! RDYNAMIC-LINKER-OPTION-SAME: "-export-dynamic"
2222

2323
! For MSVC, adding -static does not add any additional linker options.

flang/test/Driver/isysroot.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
! RUN: %flang -### --target=aarch64-linux-gnu -isysroot /path/to/sysroot \
99
! RUN: %s 2>&1 | FileCheck %s --check-prefix=CHECK-LINUX
1010

11-
! CHECK-DARWIN: "{{.*}}ld{{(64)?(\.lld)?}}" {{.*}}"-syslibroot" "/path/to/sysroot"
11+
! CHECK-DARWIN: "{{.*}}ld{{(64)?(\.lld)?(\.exe)?}}" {{.*}}"-syslibroot" "/path/to/sysroot"
1212
! Unused on Linux.
1313
! CHECK-LINUX: warning: argument unused during compilation: '-isysroot /path/to/sysroot'
1414
! CHECK-LINUX-NOT: /path/to/sysroot

0 commit comments

Comments
 (0)