summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-08-07 12:17:11 +0200
committerGitHub <[email protected]>2024-08-07 12:17:11 +0200
commit0cfd96928e1f56c4f9dd9a82662ec67313da58e2 (patch)
tree8de7e74c4783a4dd62951d335b843cd56e226b99
parent5e1dfa56a99d03d0252a51e0f730b2efb78d1bdc (diff)
Revert e26ea1c31f9fd0733590c36db4b6f9003fae8547
-rw-r--r--xmake/core/base/private/is_cross.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/base/private/is_cross.lua b/xmake/core/base/private/is_cross.lua
index c395124ab..d794f147a 100644
--- a/xmake/core/base/private/is_cross.lua
+++ b/xmake/core/base/private/is_cross.lua
@@ -40,14 +40,6 @@ function is_cross(plat, arch)
elseif plat == "mingw" then
return false
end
- elseif host_os == "macosx" then
- if plat == "macosx" then
- local host_arch = os.arch()
- -- arm64 macOS can execute x86_64 (rosetta)
- if host_arch == "arm64" and arch == "x86_64" then
- return false
- end
- end
end
if plat ~= os.host() and plat ~= os.subhost() then
return true