Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten build time by building only v8 #7

Open
lloeki opened this issue Oct 31, 2020 · 3 comments
Open

Shorten build time by building only v8 #7

lloeki opened this issue Oct 31, 2020 · 3 comments

Comments

@lloeki
Copy link
Collaborator

lloeki commented Oct 31, 2020

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
@lloeki
Copy link
Collaborator Author

lloeki commented Jan 18, 2021

We currently patch in a simple intermediate target to stop right before the final node linking phase, as Solaris trips on that one.

@lloeki
Copy link
Collaborator Author

lloeki commented Jun 21, 2021

Seems like the hack confuses cross-compiling (see #8)

@tisba
Copy link

tisba commented Feb 13, 2022

I think #31 also shortened the build times already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants