build-pkg: check-requirements MXE_TARGETS=...

check-requirements creates directories usr/<target> for all
targets. By default, MXE_TARGETS=i686-w64-mingw32.static, so
it creates a directory for i686-w64-mingw32.static only.

(Currently this doesn't affect history in usr/.git as git ignores
empty directories.)
This commit is contained in:
Boris Nagaev 2016-01-01 18:06:21 +01:00
parent ffa25d96fe
commit 533f5da3fd
1 changed files with 2 additions and 1 deletions

View File

@ -821,7 +821,8 @@ end
assert(not io.open('usr/.git'), 'Remove usr/')
assert(trim(shell('pwd')) == MXE_DIR,
"Clone MXE to " .. MXE_DIR)
assert(execute(("%s check-requirements"):format(tool 'make')))
assert(execute(("%s check-requirements MXE_TARGETS=%q"):format(
tool 'make', table.concat(TARGETS, ' '))))
if not max_items then
local cmd = ('%s download -j 6 -k'):format(tool 'make')
while not execute(cmd) do end