summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-30 21:56:47 +0800
committerruki <[email protected]>2017-03-30 21:56:47 +0800
commitb7c34b37aa2afc44e3d34efc45edae55dc73831d (patch)
tree2ab5c53d5aadc988e915c89836044ed38fc61b6d
parent8cece0ebb4012780f8c290f38e7bb022e59b6782 (diff)
not check root on windows
-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