Skip to content
Snippets Groups Projects
Verified Commit 8c2eed0e authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

fixup! pmb.build: always init cross compiler stuff

parent 2c165b98
Branches
No related tags found
No related merge requests found
Pipeline #208240 failed
......@@ -607,13 +607,12 @@ def packages(
pkg_depends.append("rsync")
# We only need to init cross compiler stuff once
if not cross:
prev_cross = cross
if cross := pmb.build.autodetect.crosscompile(pkg["apkbuild"], pkg_arch):
if cross != prev_cross:
pmb.build.init_compiler(context, pkg_depends, cross, pkg_arch)
if cross == "crossdirect":
pmb.chroot.mount_native_into_foreign(chroot)
prev_cross = cross
cross = pmb.build.autodetect.crosscompile(pkg["apkbuild"], pkg_arch):
if cross != prev_cross:
pmb.build.init_compiler(context, pkg_depends, cross, pkg_arch)
if cross == "crossdirect":
pmb.chroot.mount_native_into_foreign(chroot)
if not strict and "pmb:strict" not in pkg["apkbuild"]["options"] and len(pkg_depends):
pmb.chroot.apk.install(pkg_depends, chroot, build=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment