mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
If HOSTTYPE is not set, try to use uname -m to detect architecture
This was SVN commit r7010.
This commit is contained in:
@@ -18,7 +18,14 @@ if OS == "windows" then
|
||||
arch = "amd64"
|
||||
end
|
||||
else
|
||||
if os.getenv("HOSTTYPE") == "x86_64" then
|
||||
arch = os.getenv("HOSTTYPE")
|
||||
if not arch then
|
||||
os.execute("uname -m > .hosttype.tmp")
|
||||
local f = io.open(".hosttype.tmp","r")
|
||||
arch = f:read("*line")
|
||||
f:close()
|
||||
end
|
||||
if arch == "x86_64" then
|
||||
arch = "amd64"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user