From b45552a5f4a026d298b8cd944200713189f9f952 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Dec 2021 18:55:58 +0800 Subject: Update autoconf.lua --- xmake/modules/package/tools/autoconf.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 -- cgit v1.3.1