Skip to content

Commit

Permalink
Restore build script for real iOS thank to the issue regarding HAVE_F…
Browse files Browse the repository at this point in the history
…FI_CALL not detected correctly being fixed as of LLVM 11.0.1 and libffi 5c63b463b87d3c06102a4a7f05f395929d9ea79b
  • Loading branch information
light-tech committed Jan 16, 2021
1 parent 13b7262 commit 455c5d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Feel free to adjust to suit your need according to [the official instructions](h

Run the script in the `llvm-project` top folder (or `llvm-project-VERSION` if you download the source zipped package instead of cloning).

**Note**: When building for real iOS device, you need to open `build_ios/CMakeCache.txt` at this point
(Fixed in LLVM 11.0.1 and libffi as of commit 5c63b463b87d3c06102a4a7f05f395929d9ea79b)
<del>**Note**: When building for real iOS device, you need to open `build_ios/CMakeCache.txt` at this point
```shell
cd build_ios
vim CMakeCache.txt
Expand All @@ -114,6 +115,7 @@ After that, build and install with
cmake --build .
cmake --install .
```
</del>

Grab a coffee as it will take roughly 30 mins to complete.

Expand All @@ -137,8 +139,8 @@ Optionally, you could move the `liblld*` to `lib2` as well and the `bin` since i

The ready-to-use archive on our release page was created with
```shell
tar -cJf LLVM11-iOS.tar.xz LLVM-iOS/
tar -cJf LLVM11-iOS-Sim.tar.xz LLVM-iOS-Sim/
tar -cJf LLVM-11.0.1-iOS.tar.xz LLVM-iOS/
tar -cJf LLVM-11.0.1-iOS-Sim.tar.xz LLVM-iOS-Sim/
```

Behind the Scene
Expand Down
4 changes: 2 additions & 2 deletions buildllvm-iOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cmake -G "Ninja" \
../llvm

# Build
# cmake --build .
cmake --build .

# Install libs
# cmake --install .
cmake --install .

0 comments on commit 455c5d0

Please sign in to comment.