mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: specify target arch on mksnapshot (#21871)
This commit is contained in:
committed by
GitHub
parent
dc2fcff01c
commit
c92edc8fc4
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user