Skip to content

Commit

Permalink
[ToolChain] Better test to determine whether to use the --enable-new-…
Browse files Browse the repository at this point in the history
…dtags flag when linking the OpenCilk runtime
  • Loading branch information
neboat committed Jul 4, 2020
1 parent 6c8688b commit 2ab1c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ static void addRuntimeRunPath(const ToolChain &TC, const ArgList &Args,
CmdArgs.push_back("-rpath");
CmdArgs.push_back(Args.MakeArgString(CandidateRPath->c_str()));
// TODO: Check the portability of the --enable-new-dtags flag.
if (!Triple.isOSDarwin())
if (Triple.isOSBinFormatELF())
CmdArgs.push_back("--enable-new-dtags");
}
}
Expand Down

0 comments on commit 2ab1c12

Please sign in to comment.