Skip to content

Commit

Permalink
[ToolChain] Minor fix for linking static OpenCilk runtime on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Jan 6, 2025
1 parent 7abc364 commit 013fff1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang/lib/Driver/ToolChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,10 @@ void ToolChain::AddTapirRuntimeLibArgs(const ArgList &Args,
addOpenCilkRuntimeRunPath(*this, Args, CmdArgs, Triple);
if (OnlyStaticOpenCilk) {
CmdArgs.push_back("-Bdynamic");
CmdArgs.push_back("-lpthread");
if (!getTriple().isAndroid()) {
// There is no libpthread on Android
CmdArgs.push_back("-lpthread");
}
}
break;
}
Expand Down

0 comments on commit 013fff1

Please sign in to comment.