Skip to content

Commit

Permalink
fix for quirk when running 32bit os with 64bit kernel on raspberryPi
Browse files Browse the repository at this point in the history
  • Loading branch information
gepatto authored and joshtynjala committed Aug 28, 2023
1 parent e25857b commit 1381a77
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/hxp/System.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,19 @@ class System
}
else if (output.indexOf("arm64") > -1 || output.indexOf("aarch64") > -1)
{
_hostArchitecture = ARM64;
var getconfProcess = new Process("getconf", ["LONG_BIT"]);
var getconfOutput = getconfProcess.stdout.readAll().toString();
var getconfError = getconfProcess.stderr.readAll().toString();
getconfProcess.exitCode();
getconfProcess.close();
if (StringTools.trim(getconfOutput) == "64")
{
_hostArchitecture = ARM64;
}
else
{
_hostArchitecture = ARMV7;
}
}
else if (output.indexOf("64") > -1)
{
Expand Down

0 comments on commit 1381a77

Please sign in to comment.