File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments