mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-23 18:31:51 +00:00
24 lines
527 B
Markdown
24 lines
527 B
Markdown
V8Js on MacOS
|
|
=============
|
|
|
|
Installation of V8Js on MacOS is pretty much straight forward.
|
|
The ARM-based M1 chips also work just fine.
|
|
|
|
You can use [brew](https://brew.sh) to install `v8`. This provides
|
|
both the library as well as necessary include files in `/opt/homebrew`.
|
|
|
|
|
|
Compile php-v8js itself
|
|
-----------------------
|
|
|
|
```
|
|
cd /tmp
|
|
git clone https://github.com/phpv8/v8js.git
|
|
cd v8js
|
|
phpize
|
|
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
|
|
make -j4
|
|
make test
|
|
make install
|
|
```
|