diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td --- a/clang/include/clang/Driver/Options.td +++ b/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, - Flags<[LinkOption]>, Visibility<[ClangOption, CLOption]>; + Flags<[LinkOption]>, Visibility<[ClangOption, FlangOption, CLOption]>; def ld_path_EQ : Joined<["--"], "ld-path=">, Group; defm align_labels : BooleanFFlag<"align-labels">, Group; diff --git a/flang/test/Driver/misc-flags.f90 b/flang/test/Driver/misc-flags.f90 --- a/flang/test/Driver/misc-flags.f90 +++ b/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