Files
Martin Kustermann 4dd6ee661d [dart2wasm] Add extra build targets in V8 build documentation
Change-Id: Ibef9a043a1326651b123bb0a3748407c6cc87b18
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366941
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-21 10:52:18 +00:00

663 B

Checkout & Build V8

Get V8 checkout

Assuming depot_tools is installed and in PATH:

Get V8 source & build

% mkdir v8-gclient && cd v8-gclient
v8-gclient % fetch v8 && cd v8
v8-gclient/v8 % tools/dev/gm.py x64.release d8 wami
...

See also https://v8.dev/docs/source-code See also https://v8.dev/docs/build

If it fails due to GOMA/RBE errors it may help ensuring all goma related environment variables are cleared.

Build with profiling support enabled

v8-gclient/v8 % vim out/x64.release/args.gn
...
enable_profiling = true
...
v8-gclient/v8 % tools/dev/gm.py x64.release d8 wami
...

See also https://v8.dev/docs/linux-perf