diff options
| author | ruki <[email protected]> | 2026-03-29 22:55:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-29 22:55:28 +0800 |
| commit | 8841ed9f7b427896f042abcfb3537dd731f6a923 (patch) | |
| tree | d2cb01d00f1873851e86199deef19dda20c43702 /xmake/modules/package/tools/autoconf.lua | |
| parent | 1bccfc273af2b1d579d033324bca481e15c58653 (diff) | |
improve const limit codes
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 9 |
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) |
