[flang-commits] [clang] [flang] [flang][Driver] Support -Xlinker in flang (PR #107472)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Fri Sep 6 02:44:47 PDT 2024


================
@@ -0,0 +1,6 @@
+! RUN: %flang -### -o /dev/null %s -Xlinker -rpath=/not/a/real/path 2>&1 | FileCheck %s
+
+! CHECK: "-fc1"
+! CHECK-NEXT: "-rpath=/not/a/real/path"
----------------
tblah wrote:

nit: maybe I'm being overly pedantic here, but I think the meaning of the test would be clearer if you check directly that this is an argument to the linker, not assuming that the next line after the frontend driver is the linker. There are some regular expressions for names of the linker in `flang/test/Driver/linker-flags.f90`.

https://github.com/llvm/llvm-project/pull/107472


More information about the flang-commits mailing list