summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/amalgamate.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-30 21:12:14 +0800
committerruki <[email protected]>2023-09-30 21:12:14 +0800
commit9c0a7245d583e161e9ce4081c1cabf06a6092ac5 (patch)
tree457f80ef75813dc95a5aa19789d58845b6f220c0 /xmake/modules/cli/amalgamate.lua
parent23f598d853e16c25360b70a082629bdd0d35eedd (diff)
fix amalgamate
Diffstat (limited to 'xmake/modules/cli/amalgamate.lua')
-rw-r--r--xmake/modules/cli/amalgamate.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/cli/amalgamate.lua b/xmake/modules/cli/amalgamate.lua
index a9835eda6..e6494914f 100644
--- a/xmake/modules/cli/amalgamate.lua
+++ b/xmake/modules/cli/amalgamate.lua
@@ -99,7 +99,8 @@ function main(...)
-- generate amalgamate code
args.outputdir = args.outputdir or config.buildir()
if args.target then
- _generate_amalgamate_code(args.target, args)
+ local target = assert(project.target(args.target), "target(%s): not found!", args.target)
+ _generate_amalgamate_code(target, args)
else
for _, target in ipairs(project.ordertargets()) do
_generate_amalgamate_code(target, args)