summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-29 22:55:28 +0800
committerruki <[email protected]>2026-03-29 22:55:28 +0800
commit8841ed9f7b427896f042abcfb3537dd731f6a923 (patch)
treed2cb01d00f1873851e86199deef19dda20c43702 /xmake/modules/package/tools/autoconf.lua
parent1bccfc273af2b1d579d033324bca481e15c58653 (diff)
improve const limit codes
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 43c7d902b..181fc8295 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -667,8 +667,7 @@ function configure(package, configs, opt)
-- pass configurations
local argv = {}
for name, value in pairs(_get_configs(package, configs)) do
- local value = value
- value = tostring(value):trim()
+ local value = tostring(value):trim()
if value ~= "" then
if type(name) == "number" then
table.insert(argv, value)
@@ -722,8 +721,7 @@ function build(package, configs, opt)
end
if opt.makeconfigs then
for name, value in pairs(opt.makeconfigs) do
- local value = value
- value = tostring(value):trim()
+ local value = tostring(value):trim()
if value ~= "" then
if type(name) == "number" then
table.insert(argv, value)
@@ -750,8 +748,7 @@ function install(package, configs, opt)
end
if opt.makeconfigs then
for name, value in pairs(opt.makeconfigs) do
- local value = value
- value = tostring(value):trim()
+ local value = tostring(value):trim()
if value ~= "" then
if type(name) == "number" then
table.insert(argv, value)