diff options
| author | ruki <[email protected]> | 2021-10-10 00:01:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-10 00:01:01 +0800 |
| commit | ff96f6c08fcf72b44226626e1d04be60e92ac37c (patch) | |
| tree | 772bc2adb964e9488ea54c59da642c59710c69b4 /xmake/modules/lib/detect/pkgconfig.lua | |
| parent | 1af0820871a06217312fcee22b68e15954fc553a (diff) | |
fix some unpack
Diffstat (limited to 'xmake/modules/lib/detect/pkgconfig.lua')
| -rw-r--r-- | xmake/modules/lib/detect/pkgconfig.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/pkgconfig.lua b/xmake/modules/lib/detect/pkgconfig.lua index 9cd07a1e7..57726bae0 100644 --- a/xmake/modules/lib/detect/pkgconfig.lua +++ b/xmake/modules/lib/detect/pkgconfig.lua @@ -46,7 +46,7 @@ function version(name, opt) local configdirs_old = os.getenv("PKG_CONFIG_PATH") local configdirs = table.wrap(opt.configdirs) if #configdirs > 0 then - os.setenv("PKG_CONFIG_PATH", unpack(configdirs)) + os.setenv("PKG_CONFIG_PATH", table.unpack(configdirs)) end -- get version @@ -85,7 +85,7 @@ function variables(name, variables, opt) local configdirs_old = os.getenv("PKG_CONFIG_PATH") local configdirs = table.wrap(opt.configdirs) if #configdirs > 0 then - os.setenv("PKG_CONFIG_PATH", unpack(configdirs)) + os.setenv("PKG_CONFIG_PATH", table.unpack(configdirs)) end -- get variable value |
