diff options
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index b521b5a84..6e98adc7b 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -233,12 +233,18 @@ function install(package, configs, opt) os.vrunv("xmake", argv, {envs = envs}) -- do build - argv = {} + argv = {"build"} _set_builtin_argv(argv) + if opt.target then + table.insert(argv, opt.target) + end os.vrunv("xmake", argv, {envs = envs}) -- do install argv = {"install", "-y", "-o", package:installdir()} _set_builtin_argv(argv) + if opt.target then + table.insert(argv, opt.target) + end os.vrunv("xmake", argv, {envs = envs}) end |
