编译运行 v8
macOS Monterey 12.5.1
Xcode 13.4.1
- install depot_tools
- RUN
gclient
- mkdir ~/v8
- cd ~/v8
- fetch v8
- cd v8
- RUN
gclient sync
(Download all the build dependencies) - RUN
./tools/dev/gm.py arm64.release
- now you can RUN
./out/arm64.release/d8 hello-world.js
- RUN
gn gen out/gn --ide="xcode"
- open out/gn/all.xcodeproj
- Product > Scheme > Select d8
- build and run
- Product > Scheme > Select v8_hello_world
- build and run