| 855 | |
| 856 | |
| 857 | def verify_build_config(parser, options): |
| 858 | if options.is_bot: |
| 859 | #TODO(cbruni): Fix, currently not supported on the bots |
| 860 | return |
| 861 | config_file = options.v8_build_dir / 'v8_build_config.json' |
| 862 | with open(config_file) as f: |
| 863 | config = json.load(f) |
| 864 | found_cpu = None |
| 865 | for key in ('v8_target_cpu', 'target_cpu', 'current_cpu'): |
| 866 | found_cpu = config.get('v8_target_cpu') |
| 867 | if found_cpu == options.v8_target_cpu: |
| 868 | return |
| 869 | parser.error("Build dir '{}' config doesn't match request cpu. {}: {}".format( |
| 870 | options.v8_build_dir, options.v8_target_cpu, found_cpu)) |
| 871 | |
| 872 | |
| 873 | def override_env_options(options): |