From 3a821a9fe58b4901db1fc96db810bc7d50b73049 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Fri, 10 Apr 2026 17:26:32 +0800 Subject: feat: 支持 XMAKE_ROOT=yes/true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmake/core/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1