Add "crossdirect": faster cross compiling (!1758)

Launch native cross compilers inside foreign chroot. Enable by default,
but allow disabling with --no-crossdirect for now. This option and the
distcc-sshd related code will be removed in the future.
This commit is contained in:
Zhuowei Zhang 2019-02-15 15:21:23 -08:00 committed by Oliver Smith
parent 7f9bfee722
commit 1fffe83df3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
6 changed files with 36 additions and 6 deletions

View file

@ -324,6 +324,12 @@ def arguments():
# Compiler
parser.add_argument("--ccache-disable", action="store_false",
dest="ccache", help="do not cache the compiled output")
parser.add_argument("--no-crossdirect", action="store_true",
help="Don't use the new, faster 'crossdirect' method,"
" use the old 'distcc-sshd' method instead. Use"
" if crossdirect broke something. This option"
" and the legacy 'distcc-sshd' code will be"
" removed soon if no problems turn up.")
parser.add_argument("--distcc-nofallback", action="store_false",
help="when using the cross compiler via distcc fails,"
"do not fall back to compiling slowly with QEMU",