From 455c5d0e6d8ae609f8ba28a26b7d5ba7e18ba5ea Mon Sep 17 00:00:00 2001 From: Lightech Date: Sat, 16 Jan 2021 10:32:02 +0700 Subject: [PATCH] Restore build script for real iOS thank to the issue regarding HAVE_FFI_CALL not detected correctly being fixed as of LLVM 11.0.1 and libffi 5c63b463b87d3c06102a4a7f05f395929d9ea79b --- README.md | 8 +++++--- buildllvm-iOS.sh | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0408fb7..17c104f 100644 --- a/README.md +++ b/README.md @@ -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) +**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 @@ -114,6 +115,7 @@ After that, build and install with cmake --build . cmake --install . ``` + Grab a coffee as it will take roughly 30 mins to complete. @@ -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 diff --git a/buildllvm-iOS.sh b/buildllvm-iOS.sh index 8a023b9..f6fd819 100755 --- a/buildllvm-iOS.sh +++ b/buildllvm-iOS.sh @@ -36,7 +36,7 @@ cmake -G "Ninja" \ ../llvm # Build -# cmake --build . +cmake --build . # Install libs -# cmake --install . +cmake --install .