File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -923,7 +923,8 @@ def main_preset():
923
923
"--distcc" ,
924
924
help = "use distcc" ,
925
925
action = argparse .actions .StoreTrueAction ,
926
- nargs = argparse .Nargs .OPTIONAL )
926
+ nargs = argparse .Nargs .OPTIONAL ,
927
+ default = os .environ .get ('USE_DISTCC' ) == '1' )
927
928
parser .add_argument (
928
929
"--cmake-c-launcher" ,
929
930
help = "the absolute path to set CMAKE_C_COMPILER_LAUNCHER" ,
Original file line number Diff line number Diff line change @@ -400,6 +400,7 @@ def create_argument_parser():
400
400
option ('--host-libtool' , store_path (executable = True ),
401
401
help = 'the absolute path to libtool. Default is auto detected.' )
402
402
option ('--distcc' , toggle_true ,
403
+ default = os .environ .get ('USE_DISTCC' ) == '1' ,
403
404
help = 'use distcc in pump mode' )
404
405
option ('--enable-asan' , toggle_true ,
405
406
help = 'enable Address Sanitizer' )
You can’t perform that action at this time.
0 commit comments