0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/libllvm/clang-lib-Driver-ToolChains-CommonArgs.cpp.patch
Chongyun Lee 0442d0b1f3 bump(flang): 18.1.8 to 19.1.1
Co-Authored-By: Lucy Phipps <landfillbaby69@gmail.com>
2024-10-03 03:46:13 +05:30

13 lines
413 B
Diff

--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -1281,6 +1281,9 @@
if (AsNeeded)
addAsNeededOption(TC, Args, CmdArgs, /*as_needed=*/false);
}
+ if (TC.getTriple().isAndroid()) {
+ CmdArgs.push_back("-l:libandroid-complex-math.a");
+ }
CmdArgs.push_back("-lFortranRuntime");
CmdArgs.push_back("-lFortranDecimal");
}