diff options
| -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 |
