Skip to content

Commit 2ab1c12

Browse files
committed
[ToolChain] Better test to determine whether to use the --enable-new-dtags flag when linking the OpenCilk runtime
1 parent 6c8688b commit 2ab1c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static void addRuntimeRunPath(const ToolChain &TC, const ArgList &Args,
10601060
CmdArgs.push_back("-rpath");
10611061
CmdArgs.push_back(Args.MakeArgString(CandidateRPath->c_str()));
10621062
// TODO: Check the portability of the --enable-new-dtags flag.
1063-
if (!Triple.isOSDarwin())
1063+
if (Triple.isOSBinFormatELF())
10641064
CmdArgs.push_back("--enable-new-dtags");
10651065
}
10661066
}

0 commit comments

Comments
 (0)