0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-24 15:11:52 +00:00
phpv8/README.MacOS.md

24 lines
527 B
Markdown
Raw Normal View History

V8Js on MacOS
=============
Installation of V8Js on MacOS is pretty much straight forward.
2022-05-31 08:56:47 +00:00
The ARM-based M1 chips also work just fine.
2022-05-31 08:56:47 +00:00
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
2016-11-01 20:16:01 +00:00
git clone https://github.com/phpv8/v8js.git
cd v8js
phpize
2024-10-03 13:49:40 +00:00
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
2022-05-31 08:56:47 +00:00
make -j4
make test
make install
```