How can I checkout v8 to earlier version?

482 views
Skip to first unread message

Lingjun Zhou

unread,
Oct 8, 2018, 11:50:11 AM10/8/18
to Chromium-dev
I have compiled V8 source code in Ubuntu 16.04 successfully. I checked the V8 is the latest version, say V8 version 7.1.0(candidate).
2. export PATH=pwd/depot_tools:"$PATH"
3. gclient
4. fetch v8 cd v8
5. gclient sync
6. ./build/install-build-deps.sh (only once)
7. tools/dev/v8gen.py x64.debug
8. ninja -C out.gn/x64.debug

And now, I want to reproduce some bugs which appear in earlier V8 version. So in v8 directory, I use command git branch v6.5.1 origin/6.5.1, git checkout v6.5.1 and try to get earlier source code. 

But when I use command tools/dev/v8gen.py x64.debug, it appears
捕获.JPG
when I use command gclient sync below, it still goes wrong.
捕获.JPG

And I also tried the command  git reset --hard HEAD,but still failed.
捕获.JPG


So ,is there anyone who can help me figure out the problem?

Thanks in advance!


PhistucK

unread,
Oct 8, 2018, 12:49:33 PM10/8/18
to derek...@gmail.com, Chromium-dev
I think gclient sync also gets the latest version or something...
Perhaps you need to only run gclient runhooks.

PhistucK


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/cf35bfd3-70f7-4bbb-9819-bd86d42f3a48%40chromium.org.

Christian Biesinger

unread,
Oct 8, 2018, 12:58:42 PM10/8/18
to PhistucK, derek...@gmail.com, chromium-dev
I would recommend asking on a v8 mailing list.

Whether gclient sync also updates to the latest version depends on whether managed is set to true or false in the .gclient config, IIRC it defaults to false. But I don't know if v8 even has dependencies.

Christian

Lingjun Zhou

unread,
Oct 9, 2018, 10:27:38 AM10/9/18
to chromi...@chromium.org
Thanks for your help. 

According to the prompt, I cd to v8/build directory and check the status using git status. And I find that I changed one files before. So I git add and git commit, this problem is gone.

Lingjun Zhou <derek...@gmail.com> 于2018年10月8日周一 下午11:49写道:
Reply all
Reply to author
Forward
0 new messages