test: specify target arch on mksnapshot (#21871)
This commit is contained in:
parent
dc2fcff01c
commit
c92edc8fc4
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ import shutil
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from lib.config import get_target_arch
|
||||
from lib.util import get_electron_branding, rm_rf, scoped_cwd
|
||||
|
||||
PROJECT_NAME = get_electron_branding()['project_name']
|
||||
|
@ -28,6 +29,8 @@ def main():
|
|||
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)
|
||||
print('ok mksnapshot successfully created snapshot_blob.bin.')
|
||||
context_snapshot = 'v8_context_snapshot.bin'
|
||||
|
|
Loading…
Add table
Reference in a new issue