Skip to content

Commit

Permalink
[flang][driver] Add -l to the list of "visble" flags
Browse files Browse the repository at this point in the history
  • Loading branch information
banach-space committed Aug 18, 2023
1 parent 547ee1c commit 6cfbfb4
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -4132,7 +4132,7 @@ def imultilib : Separate<["-"], "imultilib">, Group<gfortran_Group>;
def K : Flag<["-"], "K">, Flags<[LinkerInput]>;
def keep__private__externs : Flag<["-"], "keep_private_externs">;
def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>,
Group<Link_Group>;
Visibility<[ClangOption, FlangOption]>, Group<Link_Group>;
def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;
def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;
def mlittle_endian : Flag<["-"], "mlittle-endian">, Group<m_Group>,
Expand Down
6 changes: 6 additions & 0 deletions flang/test/Driver/misc-flags.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
! Make sure that `-l` is "visible" to Flang's driver
! RUN: %flang -lpgmath -### %s

program hello
write(*,*), "Hello world!"
end program hello

0 comments on commit 6cfbfb4

Please sign in to comment.