phoboslab / JavaScriptCore-iOS

Apple's JavaScript Engine, with modified project files for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't compile for arm64

martijnthe opened this issue · comments

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?

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 ee9d2ce and the MIN_VALUE fix 850e642 ) 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 :)