Skip to content

Commit

Permalink
Fix launcher for android due to toolchain error
Browse files Browse the repository at this point in the history
  • Loading branch information
marktefftech authored and fmeum committed Apr 21, 2023
1 parent a940a57 commit cd22030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launcher/jvm_tooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd22030

Please sign in to comment.