diff options
| -rw-r--r-- | xmake/core/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 1c51342b9..f3ad904f5 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -258,7 +258,7 @@ end -- limit root? @see https://github.com/xmake-io/xmake/pull/4513 function main._limit_root() - return not option.get("root") and os.getenv("XMAKE_ROOT") ~= 'y' and os.host() ~= 'haiku' + return not option.get("root") and option.boolean(os.getenv("XMAKE_ROOT")) ~= true and os.host() ~= 'haiku' end -- run task |
