summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index db284c431..f3412d1d1 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -266,7 +266,7 @@ function main.entry()
end
-- check run command as root
- if not option.get("root") and os.getenv("XMAKE_ROOT") ~= 'y' then
+ if not option.get("root") and os.getenv("XMAKE_ROOT") ~= 'y' and os.host() ~= 'haiku' then
if os.isroot() then
errors = [[Running xmake as root is extremely dangerous and no longer supported.
As xmake does not drop privileges on installation you would be giving all