diff options
| author | ruki <[email protected]> | 2025-04-28 22:48:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 2088868b56f2c70cd4e9e72803ced3197ceba010 (patch) | |
| tree | c98f345d122d4bdbb5b14c37fa843a18d9b2678c /xmake/core/main.lua | |
| parent | c144ca1a86c559af204f0b51c4cf2b2c5afe0d41 (diff) | |
improve thread callback info
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 62ca3de1d..d1b1112a0 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -335,9 +335,9 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily. scheduler:enable(true) -- run task or thread - local thread_callinfo = xmake._THREAD_CALLINFO - if thread_callinfo then - ok, errors = thread._run_thread(thread_callinfo) + local thread_callback = xmake._THREAD_CALLBACK + if thread_callback then + ok, errors = thread._run_thread(thread_callback, xmake._THREAD_CALLINFO) else ok, errors = main._run_task(option.taskname() or "build") end |
