diff options
| author | ruki <[email protected]> | 2021-12-11 18:55:58 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-11 18:55:58 +0800 |
| commit | b45552a5f4a026d298b8cd944200713189f9f952 (patch) | |
| tree | dec2874e253e7016c4973167b6518df0ee3ae636 | |
| parent | 16c681c62506a2512ce8717ae377fa3e8d5d2f26 (diff) | |
Update autoconf.lua
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 833aa2f02..12b94d64f 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -377,6 +377,18 @@ function build(package, configs, opt) if option.get("verbose") then table.insert(argv, "V=1") end + if opt.makeconfigs then + for name, value in pairs(opt.makeconfigs) do + value = tostring(value):trim() + if value ~= "" then + if type(name) == "number" then + table.insert(argv, value) + else + table.insert(argv, name .. "=" .. value) + end + end + end + end make(package, argv, opt) end @@ -392,6 +404,18 @@ function install(package, configs, opt) if option.get("verbose") then table.insert(argv, "V=1") end + if opt.makeconfigs then + for name, value in pairs(opt.makeconfigs) do + value = tostring(value):trim() + if value ~= "" then + if type(name) == "number" then + table.insert(argv, value) + else + table.insert(argv, name .. "=" .. value) + end + end + end + end make(package, argv, opt) end |
