Skip to content

Commit 859a521

Browse files
authored
Merge pull request #6900 from SirLynix/patch-20
package.tools.xmake: fix policies not being passed
2 parents 8bcc356 + d909735 commit 859a521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/modules/package/tools/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function _get_configs(package, configs, opt)
284284
table.insert(configs, "--ccachedir=" .. path.join(path.directory(package:cachedir()), "build_cache"))
285285
table.insert(policies_list, "build.ccache")
286286
end
287-
if policies then
287+
if #policies_list > 0 then
288288
table.insert(configs, "--policies=" .. table.concat(policies_list, ","))
289289
end
290290

0 commit comments

Comments
 (0)