From 4d2af9479448457439f3638471856cac2c642c15 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Sun, 19 Apr 2020 17:46:53 +0200 Subject: [PATCH] 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. --- pmb/build/autodetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/build/autodetect.py b/pmb/build/autodetect.py index 3954a2e8..777f604b 100644 --- a/pmb/build/autodetect.py +++ b/pmb/build/autodetect.py @@ -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"