Skip to content

Instantly share code, notes, and snippets.

@kovrov
Created December 15, 2018 17:20
Show Gist options
  • Save kovrov/e5faef73953cae582b4dffca13e974d8 to your computer and use it in GitHub Desktop.
Save kovrov/e5faef73953cae582b4dffca13e974d8 to your computer and use it in GitHub Desktop.
Build V8 on Linux

this is not a script

cd $(mktemp -d)
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:$PWD/depot_tools
fetch v8
export CXX=g++-8 CC=gcc-8 AR=gcc-ar-8 NM=gcc-nm-8
gclient sync
cd v8
gn gen out/x64.host --args='custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" is_clang=false is_component_build=true is_debug=false treat_warnings_as_errors =false use_custom_libcxx=false use_sysroot=false v8_use_external_startup_data=false'
ninja -C out/x64.host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment