0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-23 01:07:10 +00:00
termux-packages/packages/lfortran/src-bin-lfortran.cpp.patch
2025-02-15 01:42:08 +08:00

27 lines
646 B
Diff

--- a/src/bin/lfortran.cpp
+++ b/src/bin/lfortran.cpp
@@ -1086,7 +1099,11 @@
out << src;
}
+#ifdef __ANDROID__
+ std::string CXX = "clang++";
+#else
std::string CXX = "g++";
+#endif
std::string options;
if (compiler_options.openmp) {
options += "-fopenmp ";
@@ -1240,7 +1257,11 @@
}
return 0;
} else if (backend == Backend::cpp) {
+#ifdef __ANDROID__
+ std::string CXX = "clang++";
+#else
std::string CXX = "g++";
+#endif
std::string options, post_options;
if (static_executable) {
options += " -static ";