From 78f4c8488e667007886bc1e02ac80444d6d42ea4 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Jan 2021 00:51:38 +0800 Subject: fix scheduler --- xmake/core/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 8eb3e065b..ec7d9b222 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -138,6 +138,9 @@ end -- the init function for main function main._init() + -- disable scheduler first + scheduler:enable(false) + -- get project directory and project file from the argument option local options, err = main._basicparse() if not options then @@ -284,6 +287,7 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily. end -- run task + scheduler:enable(true) scheduler:co_start_named("xmake " .. taskname, function () local ok, errors = taskinst:run() if not ok then -- cgit v1.3.1