summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/amalgamate.lua
diff options
context:
space:
mode:
authorShifftC <[email protected]>2025-02-08 15:33:44 +0100
committerShifftC <[email protected]>2025-02-08 16:19:47 +0100
commit482faf836ebbc8ff01dbf2f7f6743c25a66ee26f (patch)
tree716943bf2acb857d415d182b37c534a896116dbe /xmake/modules/cli/amalgamate.lua
parent5ff7887cc2e4124bcf98b7a3d83a3db0f6929273 (diff)
Replace target check in cli 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 b1ec3bf7c..cdab33c05 100644
--- a/xmake/modules/cli/amalgamate.lua
+++ b/xmake/modules/cli/amalgamate.lua
@@ -24,6 +24,7 @@ import("core.base.graph")
import("core.project.config")
import("core.project.task")
import("core.project.project")
+import("lib.detect.check_targetname")
-- the options
local options =
@@ -159,7 +160,7 @@ function main(...)
-- generate amalgamate code
args.outputdir = args.outputdir or config.buildir()
if args.target then
- local target = assert(project.target(args.target), "target(%s): not found!", args.target)
+ local target = assert(check_targetname(args.target))
_generate_amalgamate_code(target, args)
else
for _, target in ipairs(project.ordertargets()) do