diff options
| author | Jérôme Leclercq <[email protected]> | 2025-10-07 18:47:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-07 18:47:47 +0200 |
| commit | d90973574cb38d0d05668bfd91f7e1ac94903870 (patch) | |
| tree | 125a1d62838598638865162503a7d5fee5f8760d | |
| parent | 8bcc3569cba28654540fdca7a3954b814fae6ac6 (diff) | |
package.tools.xmake: fix policies not being passed
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 6a5d13af5..e7b3a47f3 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -284,7 +284,7 @@ function _get_configs(package, configs, opt) table.insert(configs, "--ccachedir=" .. path.join(path.directory(package:cachedir()), "build_cache")) table.insert(policies_list, "build.ccache") end - if policies then + if #policies_list > 0 then table.insert(configs, "--policies=" .. table.concat(policies_list, ",")) end |
