v8: prevent unnecessary rebuilds

Android.mksnapshot.mk is parsed twice when building for a 64-bit device,
for example once for arm64 and again for arm.  Using += for
LOCAL_CFLAGS_v8_target_* results in cflags being added twice for the
32-bit version.  For a 32-bit device the file is only parsed once and
the cflags are not duplicated.

The cflags are used for host modules, which are shared between builds of
different products.  If the cflags change between products the command
line will change and ninja will rebuild all the files.

Replace += with := for the first assignment to LOCAL_CFLAGS_v8_target_*.

Bug: 26470151
Change-Id: Idb7bc157830207fe5314b5b084a0bd564d5f3221
1 file changed
tree: 028d2febbf5cf8162d4c228c76e90e5148d92db3
  1. benchmarks/
  2. build/
  3. include/
  4. preparser/
  5. samples/
  6. src/
  7. test/
  8. testing/
  9. tools/
  10. .gitignore
  11. Android.d8.mk
  12. Android.libv8.mk
  13. Android.mk
  14. Android.mksnapshot.mk
  15. Android.v8common.mk
  16. AUTHORS
  17. BUILD.gn
  18. ChangeLog
  19. CleanSpec.mk
  20. codereview.settings
  21. DEPS
  22. LICENSE
  23. LICENSE.strongtalk
  24. LICENSE.v8
  25. LICENSE.valgrind
  26. Makefile
  27. Makefile.android
  28. Makefile.nacl
  29. MODULE_LICENSE_BSD
  30. NOTICE
  31. OWNERS
  32. PRESUBMIT.py
  33. README.md
  34. SConstruct
  35. snap.cc
  36. V8_MERGE_REVISION
  37. WATCHLISTS
README.md

V8 JavaScript Engine

V8 is Google's open source JavaScript engine.

V8 implements ECMAScript as specified in ECMA-262.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 can run standalone, or can be embedded into any C++ application.

V8 Project page: https://code.google.com/p/v8/

Getting the Code

Checkout depot tools, and run

fetch v8

This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run

git pull origin gclient sync

For fetching all branches, add the following into your remote configuration in .git/config:

    fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
    fetch = +refs/tags/*:refs/tags/*