diff options
| author | ruki <[email protected]> | 2020-11-14 17:10:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-14 17:10:32 +0800 |
| commit | 76dc49d6ea92fa8d22f24725de7e661f55bce3ca (patch) | |
| tree | 07f553884a5a5d9eaa5746f4ab33403c213aa2c6 /xmake/modules/core/project/depend.lua | |
| parent | 5643311ff8d29840261853b4b21c653d169b0b8f (diff) | |
fix dry-run build
Diffstat (limited to 'xmake/modules/core/project/depend.lua')
| -rw-r--r-- | xmake/modules/core/project/depend.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/modules/core/project/depend.lua b/xmake/modules/core/project/depend.lua index 05065e0b0..f55e0bdfc 100644 --- a/xmake/modules/core/project/depend.lua +++ b/xmake/modules/core/project/depend.lua @@ -150,12 +150,20 @@ end -- -- end, {dependfile = "/xx/xx", -- values = {compinst:program(), compflags}, --- files = {sourcefile, ...}}) +-- files = {sourcefile, ...}, +-- always_changed = false}) -- function on_changed(callback, opt) - -- get files + -- init option opt = opt or {} + + -- always changed? we only do callback directly + if opt.always_changed then + return callback() + end + + -- get files assert(opt.files, "depend.on_changed(): please set files list!") -- get dependfile |
