diff options
| author | ruki <[email protected]> | 2021-03-17 23:00:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-17 23:00:06 +0800 |
| commit | a9ff0bbb4c6227c53e4dcf1a6a4d1f14aaab0160 (patch) | |
| tree | 3c97e63c3d7083ca7356be1f44bff0a0f9dc48fe /xmake/modules/package/tools/xmake.lua | |
| parent | 24b2a53378c9722010b9fe2f6fba8471269407fb (diff) | |
fix tools/xmake
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index efe5e4f09..0c1cd2a14 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -74,19 +74,19 @@ function _get_configs(package, configs) end end end - if cflags then + if cflags and #cflags > 0 then table.insert(configs, "--cflags=" .. table.concat(cflags, ' ')) end - if cxflags then + if cxflags and #cxflags > 0 then table.insert(configs, "--cxflags=" .. table.concat(cxflags, ' ')) end - if cxxflags then + if cxxflags and #cxxflags > 0 then table.insert(configs, "--cxxflags=" .. table.concat(cxxflags, ' ')) end - if asflags then + if asflags and #asflags > 0 then table.insert(configs, "--asflags=" .. table.concat(asflags, ' ')) end - if ldflags then + if ldflags and #ldflags > 0 then table.insert(configs, "--ldflags=" .. table.concat(ldflags, ' ')) end return configs |
