diff options
| author | ruki <[email protected]> | 2023-09-30 21:12:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-30 21:12:14 +0800 |
| commit | 9c0a7245d583e161e9ce4081c1cabf06a6092ac5 (patch) | |
| tree | 457f80ef75813dc95a5aa19789d58845b6f220c0 | |
| parent | 23f598d853e16c25360b70a082629bdd0d35eedd (diff) | |
fix amalgamate
| -rw-r--r-- | xmake/modules/cli/amalgamate.lua | 3 |
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) |
