Skip to content

Commit

Permalink
[flang][driver] Mark -fuse-ld as visible in Flang
Browse files Browse the repository at this point in the history
The option fuse-ld is not visible in Flang. Flang reports
"Unknown argument: '-fuse-ld'" during link stage.

Reviewed By: awarzynski, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D158430
  • Loading branch information
erjin authored and bryanpkc committed Aug 23, 2023
1 parent 4bac6ed commit dc8e46c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -5887,7 +5887,7 @@ def fbinutils_version_EQ : Joined<["-"], "fbinutils-version=">,
"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>;
Expand Down
3 changes: 3 additions & 0 deletions flang/test/Driver/misc-flags.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc8e46c

Please sign in to comment.