diff options
| author | ruki <[email protected]> | 2020-10-28 00:31:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-28 00:31:33 +0800 |
| commit | f54396a336468bd12e9a6c02a360c0be6596aae3 (patch) | |
| tree | 18462ba0a14f92c3c55b6a5d46b128afeb40b1a3 | |
| parent | b862233ea3ab3497197c7c48d93dbd5af7660f29 (diff) | |
improve tools/make
| -rw-r--r-- | xmake/modules/package/tools/make.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/modules/package/tools/make.lua b/xmake/modules/package/tools/make.lua index ce1882407..833236d7a 100644 --- a/xmake/modules/package/tools/make.lua +++ b/xmake/modules/package/tools/make.lua @@ -110,7 +110,10 @@ function build(package, configs, opt) end -- install package -function install(package, configs) +function install(package, configs, opt) + + -- init options + opt = opt or {} -- pass configurations local argv = {"install"} @@ -130,8 +133,8 @@ function install(package, configs) -- do install if is_host("bsd") then - os.vrunv("gmake", argv) + os.vrunv("gmake", argv, {envs = opt.envs or buildenvs(package)}) else - os.vrunv("make", argv) + os.vrunv("make", argv, {envs = opt.envs or buildenvs(package)}) end end |
