Skip to content

Commit 603a472

Browse files
author
Ross Bayer
committed
[Build System: build-script] Allow users to enable distcc via the USE_DISTCC environment variable.
1 parent ab99ae2 commit 603a472

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/build-script

+2-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,8 @@ def main_preset():
923923
"--distcc",
924924
help="use distcc",
925925
action=argparse.actions.StoreTrueAction,
926-
nargs=argparse.Nargs.OPTIONAL)
926+
nargs=argparse.Nargs.OPTIONAL,
927+
default=os.environ.get('USE_DISTCC') == '1')
927928
parser.add_argument(
928929
"--cmake-c-launcher",
929930
help="the absolute path to set CMAKE_C_COMPILER_LAUNCHER",

utils/build_swift/build_swift/driver_arguments.py

+1
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def create_argument_parser():
400400
option('--host-libtool', store_path(executable=True),
401401
help='the absolute path to libtool. Default is auto detected.')
402402
option('--distcc', toggle_true,
403+
default=os.environ.get('USE_DISTCC') == '1',
403404
help='use distcc in pump mode')
404405
option('--enable-asan', toggle_true,
405406
help='enable Address Sanitizer')

0 commit comments

Comments
 (0)