https://github.com/jeroen/build-v8-static
Building static v8-monolith library for various distros
https://github.com/jeroen/build-v8-static
docker libv8 v8
Last synced: about 2 months ago
JSON representation
Building static v8-monolith library for various distros
- Host: GitHub
- URL: https://github.com/jeroen/build-v8-static
- Owner: jeroen
- Created: 2020-10-25T11:16:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T21:59:25.000Z (4 months ago)
- Last Synced: 2025-03-17T12:21:55.255Z (about 2 months ago)
- Topics: docker, libv8, v8
- Language: Dockerfile
- Homepage:
- Size: 31.3 KB
- Stars: 11
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building V8
Some dockerfiles for building libv8 on various platforms. Based on Jan Marvin's [v8-static](https://github.com/JanMarvin/v8-static) script for building V8 on Arch.
Run `docker build . -t myv8` in the source dir. If all goes well, the final image has `/v8-{version}.tar.xz` in the root. Use `docker run myv8` and then `docker cp` to copy it to your system.
## Important notes
Because depot_tools changes all the time, this will probably only work for recent versions of V8. To build an older V8 version, you may have to add a step to checkout an older version of depot_tools. Suitable dependency versions are storted in the [DEPS](https://github.com/v8/v8/blob/master/DEPS) file in the V8 source tree for the version you are building.
V8 pulls in a custom clang++ compiler at build time, so I think the version of g++ on your system doesn't matter. But it should still be using your system libcxx, which is what is important to use the library in your applications.
This is a minimal build without internationalization which results in a single "monolith" static library. Tweak the `gn gen` command to enable other features.
Building V8 requires a lot of memory, if you get random failures, docker may be running out of memory or disk space.