pmb.build.autodetect: support !pmb:crossdirect (MR 1922)

In case a package can't be built using crossdirect, add an APKBUILD
option to unconditionally disable crossdirect and use the slower
distcc approach instead. This is needed e.g. when using LD_PRELOAD during
the build as crossdirect cannot work with that.
This commit is contained in:
Luca Weiss 2020-04-19 17:46:53 +02:00 committed by Oliver Smith
parent 5bd6c59cea
commit 4d2af94794
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -93,6 +93,6 @@ def crosscompile(args, apkbuild, arch, suffix):
return None
if suffix == "native":
return "native"
if args.no_crossdirect:
if args.no_crossdirect or "!pmb:crossdirect" in apkbuild["options"]:
return "distcc"
return "crossdirect"