Skip to content

Instantly share code, notes, and snippets.

@skizhak
Last active October 20, 2024 05:39
Show Gist options
  • Save skizhak/dbf57d2f3b740c5eae7b2c61d24ac19f to your computer and use it in GitHub Desktop.
Save skizhak/dbf57d2f3b740c5eae7b2c61d24ac19f to your computer and use it in GitHub Desktop.
Build and generate static v8 library
#Run build-v8.sh to setup deps.
gn gen "--args=is_clang=true is_component_build=false v8_static_library=true use_custom_libcxx=false target_cpu=\"x64\"" out.gn/x64.Release
ninja -C out.gn/x64.Release/
#!/bin/bash
set -xe
cd ~
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:~/depot_tools #Add to rc file to make it persistent
gclient
mkdir v8 && cd v8
fetch v8
cd v8
gclient sync
git checkout tags/7.2.333
./build/install-build-deps.sh
#Build
tools/dev/gm.py x64.release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment