diff options
| author | ruki <[email protected]> | 2019-04-26 22:41:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-04-26 10:06:20 +0800 |
| commit | 344413267ec742dcec4d398f6f6e744ecd324d6b (patch) | |
| tree | 788b22cfa626c9f983699448d1428bded63a3a3a /xmake/modules/package/tools/autoconf.lua | |
| parent | bef83839894c841a4423f7724abd4495ea7b3c75 (diff) | |
add opt arguments to autoconf tools
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 69873f1bb..c97ba705b 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -69,7 +69,7 @@ function _get_configs(package, configs) end -- enter environments -function _enter_envs(package) +function _enter_envs(package, opt) -- get old environments local envs = {} @@ -135,7 +135,10 @@ function _leave_envs(package, envs) end -- configure package -function configure(package, configs) +function configure(package, configs, opt) + + -- init options + opt = opt or {} -- generate configure file if not os.isfile("configure") then @@ -160,7 +163,7 @@ function configure(package, configs) end -- enter environments - local envs = _enter_envs(package) + local envs = _enter_envs(package, opt) -- do configure os.vrunv("./configure", argv) @@ -170,10 +173,10 @@ function configure(package, configs) end -- install package -function install(package, configs) +function install(package, configs, opt) -- do configure - configure(package, configs) + configure(package, configs, opt) -- do make and install os.vrun("make install -j4") |
