diff options
| author | ruki <[email protected]> | 2025-10-08 11:18:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-08 11:18:05 +0800 |
| commit | 859a521e37b08137e8588993ca8c5cc7206673db (patch) | |
| tree | 125a1d62838598638865162503a7d5fee5f8760d | |
| parent | 8bcc3569cba28654540fdca7a3954b814fae6ac6 (diff) | |
| parent | d90973574cb38d0d05668bfd91f7e1ac94903870 (diff) | |
Merge pull request #6900 from SirLynix/patch-20
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 |
