Skip to content

Commit ef4a3a7

Browse files
committed
fixup! [flang][driver] Rename flang-new as flang
Make correct frontend driver exec is used
1 parent ae00eec commit ef4a3a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/Driver/ToolChains/Flang.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,7 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA,
768768

769769
CmdArgs.push_back(Input.getFilename());
770770

771-
// Get the name of this executable. The `getClangProgramPath` hook predates
772-
// Flang, hence the name assumes that it's a Clang program. In practice, it
773-
// can be any program (e.g. a Flang program) implemented in terms of
774-
// `clangDriver`.
775-
const char *Exec = D.getClangProgramPath();
771+
const char *Exec = Args.MakeArgString(D.GetProgramPath("flang", TC));
776772
C.addCommand(std::make_unique<Command>(JA, *this,
777773
ResponseFileSupport::AtFileUTF8(),
778774
Exec, CmdArgs, Inputs, Output));

0 commit comments

Comments
 (0)