From b7c34b37aa2afc44e3d34efc45edae55dc73831d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 30 Mar 2017 21:56:47 +0800 Subject: not check root on windows --- xmake/core/main.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1