[flang-commits] [flang] [flang] Make .exe extension of the linker optional (NFC) (PR #73157)
via flang-commits
flang-commits at lists.llvm.org
Wed Nov 22 10:21:11 PST 2023
https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/73157
The change in https://github.com/llvm/llvm-project/commit/34e4e5eb70818 breaks our local build that uses `-DCLANG_DEFAULT_LINKER=lld`. Although there is an open issue (https://github.com/llvm/llvm-project/issues/73153) related to `CLANG_DEFAULT_LINKER` and `FLANG_DEFAULT_LINKER`, the name of the linker may not have the `.exe` extension.
>From 4d932c80ef3d7230412b417f881b01024c535eb5 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Wed, 22 Nov 2023 13:11:01 -0500
Subject: [PATCH] [flang] make .exe extension of the linker optional (NFC)
---
flang/test/Driver/dynamic-linker.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/test/Driver/dynamic-linker.f90 b/flang/test/Driver/dynamic-linker.f90
index 2745822dc107769..df119c22a2ea516 100644
--- a/flang/test/Driver/dynamic-linker.f90
+++ b/flang/test/Driver/dynamic-linker.f90
@@ -15,6 +15,6 @@
! GNU-LINKER-OPTIONS-SAME: "-rpath" "/path/to/dir"
! For MSVC, adding -static does not add any additional linker options.
-! MSVC-LINKER-OPTIONS: "{{.*}}link.exe"
+! MSVC-LINKER-OPTIONS: "{{.*}}link{{(.exe)?}}"
! MSVC-LINKER-OPTIONS-SAME: "-dll"
! MSVC-LINKER-OPTIONS-SAME: "-rpath" "/path/to/dir"
More information about the flang-commits
mailing list