summaryrefslogtreecommitdiff
path: root/xmake/actions/build/kinds/binary.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-03 18:02:11 +0800
committerruki <[email protected]>2017-07-03 18:02:11 +0800
commitda3ea7a93cb6ff49e48af38b4ee6710cbd4edd52 (patch)
tree0e806a77d383630354230c5be853c2faba9bbb5e /xmake/actions/build/kinds/binary.lua
parent73716b52c62f407697249e8e15dd42d6163e3019 (diff)
check link deps and cache target file
Diffstat (limited to 'xmake/actions/build/kinds/binary.lua')
-rw-r--r--xmake/actions/build/kinds/binary.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua
index 17d4e063c..52baad2a3 100644
--- a/xmake/actions/build/kinds/binary.lua
+++ b/xmake/actions/build/kinds/binary.lua
@@ -34,6 +34,11 @@ function _build_from_objects(target, buildinfo)
-- build objects
object.build(target, buildinfo)
+ -- the object files are not modified?
+ if not buildinfo.objects_modified then
+ return
+ end
+
-- expand object files with *.o/obj
local objectfiles = {}
for _, objectfile in ipairs(target:objectfiles()) do