Closed martijnthe closed 10 years ago
Unfortunately the process to get JSC compiled for iOS is quite a mess and changes with each JSC version. The only documentation I have of this is the commit log of the repo.
I usually don't keep any of the old files, start from a fresh JSC version and add my own fixes (typed array API https://github.com/phoboslab/JavaScriptCore-iOS/commit/ee9d2ce6d6032c887f621d22c1f06078a13f6c3b and the MIN_VALUE fix https://github.com/phoboslab/JavaScriptCore-iOS/commit/850e64267ada34b296df359cde1f934b628d0e4f ) on top again. The main steps are adding targets to the XCode project for iOS, fixing some paths and removing private API usage.
I can look into this a bit more on the weekend.
Current version compiles for armv7, armv7s, arm64 and the simulator. Thanks @martijnthe!
(Also see #1, #2, #3)
You're welcome! Glad it worked out so quickly :)
I think the version of JavaScriptCore has an incomplete implementation for arm64. Running into all kinds of missing pieces when compiling with
ARCHS=arm64
.Is there an easy way to pull the source in from a newer version? What files should be kept?