Skip to content

Shorten build time by building only v8 #7

Open
@lloeki

Description

@lloeki

It is not needed to build the whole of Node, as only v8 is needed.

Some notes:

./configure
# records python2.7 vs python3.x, but fails to detect literal `python3`
make
# calls out make -C out BUILDTYPE=Release V=0
# also sources config.mk

According to BUILD.gn, libv8_monolith.a has v8, v8_libbase, v8_libsampler, v8_libpolatform as dependencies, so the following might be sufficient, although it doesn't source config.mk for the -C out ones.

[python2|python3] configure.py --openssl-no-asm --without-npm
make BUILDTYPE=Release out/Makefile
make -C out BUILDTYPE=Release V=0 v8
make -C out BUILDTYPE=Release V=0 v8_libbase
make -C out BUILDTYPE=Release V=0 v8_libplatform
make -C out BUILDTYPE=Release V=0 v8_libsampler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions