-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
fetch_v8.sh
executable file
·38 lines (29 loc) · 879 Bytes
/
fetch_v8.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
source "$(dirname "$0")/build_utils.sh"
V8_VERSION="10.3.22"
GCLIENT_SYNC_ARGS="
--deps=ios
--reset
--with_branch_head
--revision $V8_VERSION
--delete_unversioned_trees
"
checkpoint "Fetching V8 Version: $V8_VERSION"
echo running: gclient config --name v8 --unmanaged "https://chromium.googlesource.com/v8/v8.git"
gclient config --name v8 --unmanaged "https://chromium.googlesource.com/v8/v8.git"
checkpoint "Syncing V8"
echo running: gclient sync ${GCLIENT_SYNC_ARGS}
gclient sync ${GCLIENT_SYNC_ARGS}
checkpoint "Patching V8"
V8_PATCHSET_IOS=(
# Fix use_system_xcode build error
"system_xcode_build_error.patch"
# Find libclang_rt.iossim.a on Xcode 14
"v8_build_xcode14_toolchain_fixes.patch"
)
for patch in "${V8_PATCHSET_IOS[@]}"
do
checkpoint "Patch set: ${patch}"
patch -d "v8" -p1 < "v8_patches/$patch"
done