Commit 699ffb78 authored by nanahira's avatar nanahira

fix

parent e8fc2f08
...@@ -343,15 +343,7 @@ function IsRunningUnderARM() ...@@ -343,15 +343,7 @@ function IsRunningUnderARM()
end end
function isARM() function isARM()
if IsRunningUnderARM() then return IsRunningUnderARM()
return true
end
if os.istarget("macosx") and isRunningUnderRosetta() then
-- macOS under rosetta will report x86_64, but it is running on ARM
print("Detected running under Rosetta on macOS, treating as ARM")
return true
end
return false
end end
IS_ARM=isARM() IS_ARM=isARM()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment