Skip to content

Commit

Permalink
Haiku OS doesn't have any non-root users, so it doesn't make sense to…
Browse files Browse the repository at this point in the history
… warn

about running as the root user
  • Loading branch information
cmeerw committed Dec 16, 2023
1 parent c9ebbda commit bfd14e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/core/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfd14e4

Please sign in to comment.