Skip to content

Commit fb8028f

Browse files
Romaric JODINJordi Chauzi
authored andcommitted
dpu: clang: pass all -L options to the linker
1 parent 602acac commit fb8028f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/DPURTE.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ void Linker::ConstructJob(Compilation &C, const JobAction &JA,
109109
}
110110
}
111111

112+
/* Pass -L options to the linker */
113+
TCArgs.AddAllArgs(CmdArgs, options::OPT_L);
114+
112115
C.addCommand(llvm::make_unique<Command>(
113116
JA, *this, TCArgs.MakeArgString(Linker), CmdArgs, Inputs));
114117
}

0 commit comments

Comments
 (0)