diff options
Diffstat (limited to 'make')
-rw-r--r-- | make/detect_platform.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/make/detect_platform.lua b/make/detect_platform.lua index 8dba298c..52207f95 100644 --- a/make/detect_platform.lua +++ b/make/detect_platform.lua @@ -45,11 +45,18 @@ local function detectPosixArch() return f:read 'l':lower() end +local ARCH <const> = { + x86_64 = 'x64', + i686 = 'ia32', + arm64 = 'arm64', +} + local function detectArch() if platform.OS == 'Windows' then return detectWindowsArch() end - return detectPosixArch() + local posixArch = detectPosixArch() + return ARCH[posixArch] end local function targetPlatformArch() |