Skip to content

Instantly share code, notes, and snippets.

@tong
Last active January 14, 2022 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tong/da6829cd7a9fdb4bcea19293a7853aa7 to your computer and use it in GitHub Desktop.
Save tong/da6829cd7a9fdb4bcea19293a7853aa7 to your computer and use it in GitHub Desktop.
Dockerfile for building static libv8_monolith.a for linux
FROM debian:buster-slim
WORKDIR /build
RUN apt update && apt upgrade -y && apt install -y git curl python lsb-release sudo
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ENV PATH="/build/depot_tools:${PATH}"
RUN gclient
RUN fetch v8
WORKDIR /build/v8
RUN git checkout branch-heads/9.0
RUN gclient sync
RUN ./build/install-build-deps.sh --no-syms --no-chromeos-fonts --no-arm --no-nacl --no-backwards-compatible
RUN ./tools/dev/v8gen.py \
x64.debug \
-- \
is_debug=true \
target_os=\"linux\" \
target_cpu=\"x64\" \
v8_target_cpu=\"x64\" \
v8_use_external_startup_data=false \
v8_enable_future=true \
is_official_build=false \
is_component_build=false \
is_cfi=false \
is_asan=false \
is_clang=false \
use_custom_libcxx=false \
use_sysroot=false \
use_gold=false \
treat_warnings_as_errors=false \
v8_enable_i18n_support=false \
symbol_level=0 \
v8_static_library=true \
v8_monolithic=true \
proprietary_codecs=false \
toolkit_views=false \
use_aura=false \
use_dbus=false \
use_gio=false \
use_glib=false \
use_ozone=false \
use_udev=false \
clang_use_chrome_plugins=false \
v8_deprecation_warnings=false \
v8_enable_gdbjit=false \
v8_imminent_deprecation_warnings=false \
v8_untrusted_code_mitigations=false \
v8_use_snapshot=false \
v8_enable_pointer_compression=false
RUN ninja v8_monolith -C out.gn/x64.release/ -j $(getconf _NPROCESSORS_ONLN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment