Mac OS X上编译V8
安装depot_tools
克隆仓库
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git`
追加环境变量
在~/.bashrc或者~/.zshrc里面加上这一句(假设你下载的depot_tool位于路径/path/to/depot_tools)
export PATH=$PATH:/path/to/depot_tools下载V8
- 确保depot是最新版
client 下载v8
fetch v8创建本地新分支
git new-branch mywork
git pull 更新V8
gclient sync 更新依赖