Skip to content

Commit d909735

Browse files
authored
package.tools.xmake: fix policies not being passed
1 parent 8bcc356 commit d909735

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)