Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: scripts/slave/compile.py

Issue 2218413004: Remove --goma-enable-compiler-info-cache option from compile.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A tool to build chrome, executed by buildbot. 6 """A tool to build chrome, executed by buildbot.
7 7
8 When this is run, the current directory (cwd) should be the outer build 8 When this is run, the current directory (cwd) should be the outer build
9 directory (e.g., chrome-release/build/). 9 directory (e.g., chrome-release/build/).
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 # The cache file is stored in the target output directory. 109 # The cache file is stored in the target output directory.
110 env['GOMA_DEPS_CACHE_DIR'] = ( 110 env['GOMA_DEPS_CACHE_DIR'] = (
111 options.goma_deps_cache_dir or options.target_output_dir) 111 options.goma_deps_cache_dir or options.target_output_dir)
112 112
113 if options.goma_hermetic: 113 if options.goma_hermetic:
114 env['GOMA_HERMETIC'] = options.goma_hermetic 114 env['GOMA_HERMETIC'] = options.goma_hermetic
115 if options.goma_enable_remote_link: 115 if options.goma_enable_remote_link:
116 env['GOMA_ENABLE_REMOTE_LINK'] = options.goma_enable_remote_link 116 env['GOMA_ENABLE_REMOTE_LINK'] = options.goma_enable_remote_link
117 if options.goma_store_local_run_output: 117 if options.goma_store_local_run_output:
118 env['GOMA_STORE_LOCAL_RUN_OUTPUT'] = options.goma_store_local_run_output 118 env['GOMA_STORE_LOCAL_RUN_OUTPUT'] = options.goma_store_local_run_output
119 if options.goma_enable_compiler_info_cache:
120 # Will be stored in GOMA_CACHE_DIR.
121 env['GOMA_COMPILER_INFO_CACHE_FILE'] = 'goma-compiler-info.cache'
122 119
123 if options.build_data_dir: 120 if options.build_data_dir:
124 env['GOMA_DUMP_STATS_FILE'] = os.path.join(options.build_data_dir, 121 env['GOMA_DUMP_STATS_FILE'] = os.path.join(options.build_data_dir,
125 'goma_stats_proto') 122 'goma_stats_proto')
126 123
127 if options.goma_service_account_json_file: 124 if options.goma_service_account_json_file:
128 env['GOMA_SERVICE_ACCOUNT_JSON_FILE'] = \ 125 env['GOMA_SERVICE_ACCOUNT_JSON_FILE'] = \
129 options.goma_service_account_json_file 126 options.goma_service_account_json_file
130 goma_start_command = ['restart'] 127 goma_start_command = ['restart']
131 goma_ctl_cmd = [sys.executable, 128 goma_ctl_cmd = [sys.executable,
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 help='specify goma directory') 470 help='specify goma directory')
474 option_parser.add_option('--goma-cache-dir', 471 option_parser.add_option('--goma-cache-dir',
475 default=DEFAULT_GOMA_CACHE_DIR, 472 default=DEFAULT_GOMA_CACHE_DIR,
476 help='specify goma cache directory') 473 help='specify goma cache directory')
477 option_parser.add_option('--goma-deps-cache-dir', 474 option_parser.add_option('--goma-deps-cache-dir',
478 help='specify goma deps cache directory') 475 help='specify goma deps cache directory')
479 option_parser.add_option('--goma-hermetic', default='error', 476 option_parser.add_option('--goma-hermetic', default='error',
480 help='Set goma hermetic mode') 477 help='Set goma hermetic mode')
481 option_parser.add_option('--goma-enable-remote-link', default=None, 478 option_parser.add_option('--goma-enable-remote-link', default=None,
482 help='Enable goma remote link.') 479 help='Enable goma remote link.')
483 option_parser.add_option('--goma-enable-compiler-info-cache',
484 action='store_true',
485 help='Enable goma CompilerInfo cache')
486 option_parser.add_option('--goma-store-local-run-output', default=None, 480 option_parser.add_option('--goma-store-local-run-output', default=None,
487 help='Store local run output to goma servers.') 481 help='Store local run output to goma servers.')
488 option_parser.add_option('--goma-fail-fast', action='store_true') 482 option_parser.add_option('--goma-fail-fast', action='store_true')
489 option_parser.add_option('--goma-disable-local-fallback', action='store_true') 483 option_parser.add_option('--goma-disable-local-fallback', action='store_true')
490 option_parser.add_option('--goma-jsonstatus', 484 option_parser.add_option('--goma-jsonstatus',
491 help='Specify a file to dump goma_ctl jsonstatus.') 485 help='Specify a file to dump goma_ctl jsonstatus.')
492 option_parser.add_option('--goma-service-account-json-file', 486 option_parser.add_option('--goma-service-account-json-file',
493 help='Specify a file containing goma service account' 487 help='Specify a file containing goma service account'
494 ' credentials') 488 ' credentials')
495 option_parser.add_option('--goma-jobs', default=None, 489 option_parser.add_option('--goma-jobs', default=None,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 exit_status = main_ninja(options, args, env) 528 exit_status = main_ninja(options, args, env)
535 529
536 # stop goma 530 # stop goma
537 goma_teardown(options, env, exit_status, goma_cloudtail) 531 goma_teardown(options, env, exit_status, goma_cloudtail)
538 532
539 return exit_status 533 return exit_status
540 534
541 535
542 if '__main__' == __name__: 536 if '__main__' == __name__:
543 sys.exit(real_main()) 537 sys.exit(real_main())
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698