mirror of
https://github.com/electron/electron.git
synced 2026-02-15 01:25:00 -05:00
ci: make sure mksnapshot is invoked with proper args. (#21991)
* build: robustify verify-mksnapshot w.r.t. command-line parameters Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
committed by
GitHub
parent
6273bc9957
commit
6f1f4d3f2f
@@ -26,12 +26,9 @@ def main():
|
||||
try:
|
||||
with scoped_cwd(app_path):
|
||||
if args.snapshot_files_dir is None:
|
||||
mkargs = [ get_binary_path('mksnapshot', app_path), \
|
||||
SNAPSHOT_SOURCE, '--startup_blob', 'snapshot_blob.bin', \
|
||||
'--no-native-code-counters', '--turbo_instruction_scheduling' ]
|
||||
if get_target_arch() == 'ia32':
|
||||
mkargs.append('--target_arch=x86')
|
||||
subprocess.check_call(mkargs)
|
||||
with open(os.path.join(app_path, 'mksnapshot_args')) as f:
|
||||
mkargs = f.read().splitlines()
|
||||
subprocess.check_call(mkargs + [ SNAPSHOT_SOURCE ], cwd=app_path)
|
||||
print('ok mksnapshot successfully created snapshot_blob.bin.')
|
||||
context_snapshot = 'v8_context_snapshot.bin'
|
||||
context_snapshot_path = os.path.join(app_path, context_snapshot)
|
||||
|
||||
Reference in New Issue
Block a user