mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-23 01:07:10 +00:00
27 lines
646 B
Diff
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 ";
|