Skip to content

Commit

Permalink
USe RBE while building locally with gn.py (#4222)
Browse files Browse the repository at this point in the history
  • Loading branch information
niranjanyardi authored Oct 8, 2024
1 parent 2601481 commit d6b8bb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chrobalt/build/gn.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def write_build_args(build_args_path, original_lines, dict_settings,
f'The following args cannot be set in configs: {controlled_args}')
gen_comment = '# Set by gn.py'
with open(build_args_path, 'w', encoding='utf-8') as f:
f.write(f'cc_wrapper = "{CC_WRAPPER}" {gen_comment}\n')
if os.getenv("USE_RBE", default="0") == "0" :
f.write(f'cc_wrapper = "{CC_WRAPPER}" {gen_comment}\n')
else :
f.write(f'use_remoteexec = true {gen_comment}\n')
f.write(f'build_type = "{build_type}" {gen_comment}\n')
for key, value in _BUILD_TYPES[build_type].items():
f.write(f'{key} = {value} {gen_comment}\n')
Expand Down

0 comments on commit d6b8bb9

Please sign in to comment.