summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/amalgamate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/cli/amalgamate.lua')
-rw-r--r--xmake/modules/cli/amalgamate.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/cli/amalgamate.lua b/xmake/modules/cli/amalgamate.lua
index e495ae70b..a9835eda6 100644
--- a/xmake/modules/cli/amalgamate.lua
+++ b/xmake/modules/cli/amalgamate.lua
@@ -35,8 +35,8 @@ local options =
-- generate code
function _generate_amalgamate_code(target, opt)
- -- only for library
- if not target:is_library() then
+ -- only for library/binary
+ if not target:is_library() and not target:is_binary() then
return
end