Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ sudo apt-get install libjavascriptcoregtk-4.1-dev
Then, run cmake targetting a Ninja make file:

```
cmake -G Ninja -D -D NAPI_JAVASCRIPT_ENGINE=JavaScriptCore
cmake -B build/linux -G Ninja -D NAPI_JAVASCRIPT_ENGINE=JavaScriptCore
```

### V8
Expand All @@ -309,13 +309,13 @@ sudo apt-get install libv8-dev
Then, run cmake targetting a Ninja make file:

```
cmake -G Ninja -D NAPI_JAVASCRIPT_ENGINE=V8
cmake -B build/linux -G Ninja -D NAPI_JAVASCRIPT_ENGINE=V8
```

And finally, for any JavaScript engine, run a build:

```
ninja
cmake --build build/linux
```

You can switch compiler between GCC and Clang by defining shell variables.
Expand Down