diff options
| author | ruki <[email protected]> | 2017-07-20 13:19:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-20 13:19:21 +0800 |
| commit | 37e1e4b70b3f0f29e695603f1ba5ce1fd96f7417 (patch) | |
| tree | 21dd25673ebb105c8b4aa4505d062b7cdc4de4a1 /xmake/actions/build/builder.lua | |
| parent | 1df9b001b1607882d38211ddb2e6d72e3ac0c542 (diff) | |
update tbox for windows
Diffstat (limited to 'xmake/actions/build/builder.lua')
| -rw-r--r-- | xmake/actions/build/builder.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/actions/build/builder.lua b/xmake/actions/build/builder.lua index 8078a23ce..a6833f8be 100644 --- a/xmake/actions/build/builder.lua +++ b/xmake/actions/build/builder.lua @@ -28,6 +28,13 @@ import("core.project.config") import("core.project.project") import("core.platform.environment") +-- clean target for rebuilding +function _clean_target(target) + if not target:isphony() then + os.tryrm(target:symbolfile()) + end +end + -- on build the given target function _on_build_target(target) @@ -48,6 +55,11 @@ function _build_target(target) , target:script("build_after") } + -- clean target if rebuild + if _g.rebuild then + _clean_target(target) + end + -- run the target scripts for i = 1, 3 do local script = scripts[i] |
