diff options
| author | ruki <[email protected]> | 2020-02-27 22:37:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-27 09:42:01 +0800 |
| commit | f26c0edb8b74cd48a27d833bc75a0cd0ecf6a0a1 (patch) | |
| tree | a181b445feda5a650e4ed79cb3aa02dd2b1132d3 /xmake/actions/build/kinds/binary.lua | |
| parent | 8ff71e5b75987914e71fa446c0fad82868be6c50 (diff) | |
add dry-run command
Diffstat (limited to 'xmake/actions/build/kinds/binary.lua')
| -rw-r--r-- | xmake/actions/build/kinds/binary.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua index b6d3fa937..97e4d14e8 100644 --- a/xmake/actions/build/kinds/binary.lua +++ b/xmake/actions/build/kinds/binary.lua @@ -88,7 +88,9 @@ function _do_link_target(target, opt) io.flush() -- link it - assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags})) + if not option.get("dry-run") then + assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags})) + end -- update files and values to the dependent file dependinfo.files = depfiles |
