7979]
8080
8181
82- def write_build_args (build_args_path , platform_args_path , build_type , use_rbe ,
82+ def write_build_args (build_args_path , platform_args_path , build_type , use_rbe ,
8383 use_coverage ):
8484 """ Write args file, modifying settings for config"""
8585 gen_comment = '# Set by gn.py'
@@ -89,6 +89,7 @@ def write_build_args(build_args_path, platform_args_path, build_type, use_rbe,
8989 f .write (f'use_remoteexec = true { gen_comment } \n ' )
9090 f .write (
9191 f'rbe_cfg_dir = rebase_path("//cobalt/reclient_cfgs") { gen_comment } \n ' )
92+ # f.write('cc_wrapper = "sccache"')
9293 f .write (f'build_type = "{ build_type } " { gen_comment } \n ' )
9394 for key , value in _BUILD_TYPES [build_type ].items ():
9495 f .write (f'{ key } = { value } { gen_comment } \n ' )
@@ -162,6 +163,12 @@ def parse_args():
162163 default = False ,
163164 action = 'store_true' ,
164165 help = 'Pass this flag to enable code coverage instrumentation.' )
166+ # parser.add_argument(
167+ # '--cc_wrapper',
168+ # type=str,
169+ # default='',
170+ # action='store_true',
171+ # help='Compiler wrapper to use (e.g., sccache).')
165172
166173 # Consume --args to avoid passing to gn gen, overriding args.gn file.
167174 parser .add_argument ('--args' , help = argparse .SUPPRESS )
@@ -174,6 +181,9 @@ def parse_args():
174181 if not script_args .no_check :
175182 gen_args .append ('--check' )
176183
184+ # if script_args.cc_wrapper:
185+ # gen_args.append(script_args.cc_wrapper)
186+
177187 if script_args .args :
178188 print ('WARNING: \' --args\' was ignored to avoid overriding args.gn file.' )
179189
0 commit comments