如何获得 'last stable' 版本的 V8 源代码

How to get a 'last stable' version of the V8 sources

我安装了 "git for windows" 版本 2.10.0 和 "depot_tools",然后成功 运行 fetch v8 命令。

作为参考,我必须解决一个问题:如果没有 DEPOT_TOOLS_WIN_TOOLCHAIN=0 环境变量,fetch 就会中断。

无论如何,我知道有一个 v8 源代码树,有 55k 个文件 (1Go),下一步是构建 V8(对于 Windows)

我的问题:git branch 说:

* (HEAD detached at origin/master)
  master

我看到 here win64 上 V8 的最后一个稳定版本是“5.3.332.45”。 如何将我的源代码树设置为用于构建该版本的源代码树?

(是的,我是 git 的新手)(但与 svn 一起使用)

来自这里的信息:https://www.chromium.org/developers/how-tos/get-the-code/working-with-release-branches

确保所有标签都可用后:

git fetch --tags

您可以创建分支并签出带标签的版本:

git checkout -b BRANCH_NAME tags/TAG_NAME

BRANCH_NAME不需要存在,会自动创建

TAG_NAME 是版本标签的值,即此处找到的 v8_version 字段:http://omahaproxy.appspot.com/