Skip to content

Commit f75d747

Browse files
committed
[Readme] Add Linuxbrew
1 parent aee1e78 commit f75d747

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,23 @@ swift test \
7070
--generate-linuxmain
7171
```
7272

73+
### Linuxbrew
74+
75+
#### V8
76+
77+
```bash
78+
brew tap tris-brew/linux
79+
brew install libv8
80+
```
81+
82+
#### SwiftPM arguments
83+
84+
```bash
85+
export LD_LIBRARY_PATH=/home/linuxbrew/.linuxbrew/lib/
86+
swift build -Xcc -I/home/linuxbrew/.linuxbrew/include -Xlinker -L/home/linuxbrew/.linuxbrew/lib -Xlinker -lv8_libbase -Xlinker -lv8_libplatform
87+
swift test -Xcc -I/home/linuxbrew/.linuxbrew/include -Xlinker -L/home/linuxbrew/.linuxbrew/lib -Xlinker -lv8_libbase -Xlinker -lv8_libplatform
88+
```
89+
7390
### Linux
7491

7592
#### V8

0 commit comments

Comments
 (0)