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:
parent
5bd6c59cea
commit
4d2af94794
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue