@@ -2,7 +2,7 @@ local lm = require 'luamake'
22
33local platform = require ' bee.platform'
44
5- if platform .OS == ' macOS ' then
5+ if platform .os == ' macos ' then
66 if lm .platform == nil then
77 elseif lm .platform == " darwin-arm64" then
88 lm .target = " arm64-apple-macos11"
@@ -11,7 +11,7 @@ if platform.OS == 'macOS' then
1111 else
1212 error " unknown platform"
1313 end
14- elseif platform .OS == ' Windows ' then
14+ elseif platform .os == ' windows ' then
1515 if lm .platform == nil then
1616 elseif lm .platform == " win32-ia32" then
1717 lm .arch = " x86"
@@ -20,7 +20,7 @@ elseif platform.OS == 'Windows' then
2020 else
2121 error " unknown platform"
2222 end
23- elseif platform .OS == ' Linux ' then
23+ elseif platform .os == ' linux ' then
2424 if lm .platform == nil then
2525 elseif lm .platform == " linux-x64" then
2626 elseif lm .platform == " linux-arm64" then
@@ -52,7 +52,7 @@ local ARCH <const> = {
5252}
5353
5454local function detectArch ()
55- if platform .OS == ' Windows ' then
55+ if platform .os == ' windows ' then
5656 return detectWindowsArch ()
5757 end
5858 local posixArch = detectPosixArch ()
@@ -67,5 +67,5 @@ local function targetPlatformArch()
6767end
6868
6969if not lm .notest then
70- lm .notest = (platform .OS ~= ' Windows ' and targetPlatformArch () ~= detectArch ())
70+ lm .notest = (platform .os ~= ' windows ' and targetPlatformArch () ~= detectArch ())
7171end
0 commit comments