From cd220307f2615b3fda21219c676803663322f4ce Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 20 Apr 2023 22:18:48 +0000 Subject: [PATCH] Fix launcher for android due to toolchain error --- launcher/jvm_tooling.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher/jvm_tooling.cpp b/launcher/jvm_tooling.cpp index d93b32311..1b0e50009 100644 --- a/launcher/jvm_tooling.cpp +++ b/launcher/jvm_tooling.cpp @@ -67,6 +67,8 @@ std::string getExecutablePath() { if (_NSGetExecutablePath(buf, &buf_size) != 0) { #elif defined(_WIN32) if (GetModuleFileNameA(NULL, buf, sizeof(buf)) == 0) { +#elif defined(_ANDROID) + if (true) { #else // Assume Linux if (readlink("/proc/self/exe", buf, sizeof(buf)) == -1) { #endif