Skip to content

Commit cbcfc52

Browse files
committed
[Readme] Update v8 instructions for Linux
1 parent 09c10dd commit cbcfc52

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,20 @@ swift test \
6363
--generate-linuxmain
6464
```
6565

66-
### Linuxbrew
67-
68-
#### V8
69-
70-
```bash
71-
brew tap tris-brew/linux
72-
brew install libv8
73-
```
74-
75-
#### SwiftPM arguments
76-
77-
```bash
78-
export LD_LIBRARY_PATH=/home/linuxbrew/.linuxbrew/lib/
79-
swift build -Xcc -I/home/linuxbrew/.linuxbrew/include -Xlinker -L/home/linuxbrew/.linuxbrew/lib -Xlinker -lv8_libbase -Xlinker -lv8_libplatform
80-
swift test -Xcc -I/home/linuxbrew/.linuxbrew/include -Xlinker -L/home/linuxbrew/.linuxbrew/lib -Xlinker -lv8_libbase -Xlinker -lv8_libplatform
81-
```
82-
8366
### Linux
8467

8568
#### V8
8669

70+
For full instructions follow https://v8.dev/docs/build
8771
```bash
88-
add-apt-repository -y ppa:pinepain/libv8
89-
apt update && apt install -y libv8-6.6-dev
72+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
73+
export PATH=$PATH:$(pwd)/depot_tools
74+
fetch v8
75+
cd v8
76+
gclient sync -r 7.0.276.28
77+
./build/install-build-deps.sh #OMG
78+
gn gen --args="is_debug=false is_component_build=true v8_use_external_startup_data=false v8_enable_i18n_support=false" out.gn/x64.release
79+
ninja -j8 -C out.gn/x64.release -v d8
9080
```
9181

9282
#### JavaScriptCore

0 commit comments

Comments
 (0)