diff options
| author | ruki <[email protected]> | 2025-07-31 23:47:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-07-31 23:47:12 +0800 |
| commit | d557f7bac7d328917c8af6a4e05dd8a01403c07d (patch) | |
| tree | 0b9193e7d786ad3e5afc2afef8c0c52e2bac2141 /xmake/modules | |
| parent | 7e83cccc33ed69252f46962131bbd292c2d1a4ab (diff) | |
fix builtin script
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/build/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/build/target.lua b/xmake/modules/private/action/build/target.lua index 683b30664..cd5c60c34 100644 --- a/xmake/modules/private/action/build/target.lua +++ b/xmake/modules/private/action/build/target.lua @@ -131,13 +131,13 @@ end -- add target jobs for the builtin script function add_targetjobs_for_builtin_script(jobgraph, target, opt) opt = opt or {} - local job_kind = opt.job_kind + local job_kind = opt.job_kind or "build" if target:is_static() or target:is_binary() or target:is_shared() or target:is_object() or target:is_moduleonly() then if job_kind == "prepare" then import("private.action.build.prepare_files", {anonymous = true})(jobgraph, target, opt) elseif job_kind == "link" then import("private.action.build.link_objects", {anonymous = true})(jobgraph, target, opt) - else + elseif job_kind == "build" then import("private.action.build.build_" .. target:kind(), {anonymous = true})(jobgraph, target, opt) end end |
