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:
parent
6273bc9957
commit
6f1f4d3f2f
3 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue