[PATCH] D158430: [flang][driver] Mark -fuse-ld as visible in Flang
Hao Jin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 08:33:07 PDT 2023
erjin created this revision.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
Herald added projects: Flang, All.
erjin requested review of this revision.
Herald added subscribers: cfe-commits, jdoerfert.
Herald added a project: clang.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158430
Files:
clang/include/clang/Driver/Options.td
flang/test/Driver/misc-flags.f90
Index: flang/test/Driver/misc-flags.f90
===================================================================
--- flang/test/Driver/misc-flags.f90
+++ flang/test/Driver/misc-flags.f90
@@ -4,6 +4,9 @@
! Make sure that `-Wl` is "visible" to Flang's driver
! RUN: %flang -Wl,abs -### %s
+! Make sure that `-fuse-ld' is "visible" to Flang's driver
+! RUN: %flang -fuse-ld= -### %s
+
program hello
write(*,*), "Hello world!"
end program hello
Index: clang/include/clang/Driver/Options.td
===================================================================
--- clang/include/clang/Driver/Options.td
+++ clang/include/clang/Driver/Options.td
@@ -5885,7 +5885,7 @@
"generated assembly will consider GNU as support. 'none' means that all ELF "
"features can be used, regardless of binutils support. Defaults to 2.26.">;
def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group<f_Group>,
- Flags<[LinkOption]>, Visibility<[ClangOption, CLOption]>;
+ Flags<[LinkOption]>, Visibility<[ClangOption, FlangOption, CLOption]>;
def ld_path_EQ : Joined<["--"], "ld-path=">, Group<Link_Group>;
defm align_labels : BooleanFFlag<"align-labels">, Group<clang_ignored_gcc_optimization_f_Group>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158430.552034.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230821/40d4d398/attachment.bin>
More information about the cfe-commits
mailing list