-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup
More file actions
executable file
·53 lines (34 loc) · 1.33 KB
/
Copy pathsetup
File metadata and controls
executable file
·53 lines (34 loc) · 1.33 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -x
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
cd ..
PROJECT_DIR="$DIR/.."
# automerge
pushd third_party/automerge-js-automerge-3.2.6/rust
# export CROSS_NO_WARNINGS=0
# CROSS_NO_WARNINGS=0 cross build --manifest-path automerge-c/Cargo.toml -r --target aarch64-apple-ios
rustup target add aarch64-apple-ios
cargo build --manifest-path automerge-c/Cargo.toml -r --target aarch64-apple-ios
popd
pushd third_party/ios-graal-jdk-21/labs-openjdk/labs-openjdk-21
export JAVA_HOME="$PROJECT_DIR"/third_party/graalvm-jdk-21.0.3+7.1/Contents/Home
export GRAALVM_HOME="$JAVA_HOME"
export PATH=$JAVA_HOME/bin:$PATH
./configure \
--with-conf-name=labsjdk \
--with-version-opt=jvmci-23.1-b37 \
--with-version-pre= \
--with-vendor-name="GraalVM Community" \
--with-vendor-url=https://www.graalvm.org/ \
--with-vendor-bug-url=https://github.com/oracle/graal/issues \
--with-vendor-vm-bug-url=https://github.com/oracle/graal/issues
make CONF_NAME=labsjdk graal-builder-image
popd
# prep libffi
pushd third_party/libffi-3.4.8
patch -N ./generate-darwin-source-and-headers.py < ../patches/libffi-only-arm64.patch || true
python3 ./generate-darwin-source-and-headers.py --only-ios
patch -N ./libffi.xcodeproj/project.pbxproj < ../patches/libffi-only-arm64-2.patch
popd