diff options
| author | ruki <[email protected]> | 2024-01-26 23:50:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-26 23:50:30 +0800 |
| commit | 9d01da2a9127f8400e231cfc38e80fa7320b6ef0 (patch) | |
| tree | ed3f44ee6961ed70759beda21d78a65b756b85ef /xmake/modules/package/tools/xmake.lua | |
| parent | 042362f4c3f1dab8b6b5a32fcbbae20e66e224de (diff) | |
remove PATH in xmake
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 379a46d19..6112b9e5b 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -467,7 +467,7 @@ function install(package, configs, opt) local repo_argv = {"repo"} _set_builtin_argv(package, repo_argv) table.join2(repo_argv, {"--add", repo:name(), repo:directory()}) - os.vrunv("xmake", repo_argv, {envs = envs}) + os.vrunv(os.programfile(), repo_argv, {envs = envs}) end -- pass configurations @@ -488,7 +488,7 @@ function install(package, configs, opt) end -- do configure - os.vrunv("xmake", argv, {envs = envs}) + os.vrunv(os.programfile(), argv, {envs = envs}) -- do build argv = {"build"} @@ -500,7 +500,7 @@ function install(package, configs, opt) if njob then table.insert(argv, "--jobs=" .. njob) end - os.vrunv("xmake", argv, {envs = envs}) + os.vrunv(os.programfile(), argv, {envs = envs}) -- do install argv = {"install", "-y", "--nopkgs", "-o", package:installdir()} @@ -508,5 +508,5 @@ function install(package, configs, opt) if opt.target then table.insert(argv, opt.target) end - os.vrunv("xmake", argv, {envs = envs}) + os.vrunv(os.programfile(), argv, {envs = envs}) end |
