diff options
| author | ruki <[email protected]> | 2021-01-28 00:51:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-28 00:51:38 +0800 |
| commit | 78f4c8488e667007886bc1e02ac80444d6d42ea4 (patch) | |
| tree | 6a1e949b84514f32279c26ce91fa944bbee521c8 /xmake/core/main.lua | |
| parent | 86dfac55cc4a5651bf07888875f504fa1e2de477 (diff) | |
fix scheduler
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
