Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions doc/build-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,13 @@ After configuration, you are ready to compile.
Run the following in your terminal to compile Bitcoin Core:

``` bash
cmake --build build # Use "-j N" here for N parallel jobs.
ctest --test-dir build # Use "-j N" for N parallel tests. Some tests are disabled if Python 3 is not available.
cmake --build build -j$(nproc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also use -G ninja, the ninja build system uses all available CPU threads by default 😎
(not sure we'd want to recommend it as default tho)

ctest --test-dir build -j$(nproc) # Some tests are disabled if Python 3 is not available.
```

Note: On macOS, the `nproc` command is not available by default.
You can install it by running `brew install coreutils`.

### 3. Deploy (optional)

You can also create a `.zip` containing the `.app` bundle by running the following command:
Expand Down
5 changes: 4 additions & 1 deletion doc/productivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ If you do need the wallet enabled (`-DENABLE_WALLET=ON`), it is common for devs
If you have multiple threads on your machine, you can utilize all of them with:

```sh
cmake --build build -j "$(($(nproc)+1))"
cmake --build build -j$(nproc)
```

Note: On macOS, the `nproc` command is not available by default.
You can install it by running `brew install coreutils`.

### Only build what you need

When rebuilding during development, note that running `cmake --build build`, without giving a target, will do a lot of work you probably don't need. It will build the GUI (if you've enabled it) and all the tests (which take much longer to build than the app does).
Expand Down
Loading