summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index f37e3940a..a5f3d520f 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -104,6 +104,11 @@ end
-- check run command as root
function main._check_root()
+ -- TODO not check
+ if xmake._HOST == "windows" then
+ return true
+ end
+
-- check it
local ok, code = os.iorun("id -u")
if ok and code and code:trim() == '0' then