Skip to content

Commit 6cfbfb4

Browse files
committed
[flang][driver] Add -l to the list of "visble" flags
Missed in https://reviews.llvm.org/D157837. Fixes: * https://lab.llvm.org/buildbot/#/builders/197/builds/8996/steps/13/logs/stdio
1 parent 547ee1c commit 6cfbfb4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4132,7 +4132,7 @@ def imultilib : Separate<["-"], "imultilib">, Group<gfortran_Group>;
41324132
def K : Flag<["-"], "K">, Flags<[LinkerInput]>;
41334133
def keep__private__externs : Flag<["-"], "keep_private_externs">;
41344134
def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>,
4135-
Group<Link_Group>;
4135+
Visibility<[ClangOption, FlangOption]>, Group<Link_Group>;
41364136
def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;
41374137
def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;
41384138
def mlittle_endian : Flag<["-"], "mlittle-endian">, Group<m_Group>,

flang/test/Driver/misc-flags.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
! Make sure that `-l` is "visible" to Flang's driver
2+
! RUN: %flang -lpgmath -### %s
3+
4+
program hello
5+
write(*,*), "Hello world!"
6+
end program hello

0 commit comments

Comments
 (0)