diff options
| author | ruki <[email protected]> | 2020-03-14 00:14:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-13 19:25:35 +0800 |
| commit | 0738f08ef44a4a7c187bbce9049836f9b6f74e7c (patch) | |
| tree | e52af1915309d4bd3957d248dc41a5823df3776b /xmake/modules/private/action/build/object.lua | |
| parent | b0fe63f5e878af48e37b99b5067a6fdfbb2c9791 (diff) | |
fix jobpool
Diffstat (limited to 'xmake/modules/private/action/build/object.lua')
| -rw-r--r-- | xmake/modules/private/action/build/object.lua | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index 2275945e1..423f7fdaa 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -85,25 +85,9 @@ end -- build object function _build_object(target, sourcefile, opt) - - -- do before build - local before_build_file = target:script("build_file_before") - if before_build_file then - before_build_file(target, sourcefile, opt) - end - - -- do build - local on_build_file = target:script("build_file") - if on_build_file then - on_build_file(target, sourcefile, opt) - else - _do_build_file(target, sourcefile, opt) - end - - -- do after build - local after_build_file = target:script("build_file_after") - if after_build_file then - after_build_file(target, sourcefile, opt) + local script = target:script("build_file", _do_build_file) + if script then + script(target, sourcefile, opt) end end |
