Skip to content

Commit

Permalink
docs: document how to compile a statically linked binary on Mac
Browse files Browse the repository at this point in the history
I feel like this is worth documenting, as it shouldn't require
Homebrew.
  • Loading branch information
ilyagr committed Aug 12, 2024
1 parent fd52efa commit 206c0cf
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions docs/install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,33 @@ brew install jj

### Mac

#### From Source
#### From Source, Vendored OpenSSL

You may need to run:

```shell
xcode-select --install
```

Now run either:

```shell
# To install the *prerelease* version from the main branch
cargo install --git https://github.com/martinvonz/jj.git \
--features vendored-openssl --locked --bin jj jj-cli
```

or:

```shell
# To install the latest release
cargo install --features vendored-openssl -locked --bin jj jj-cli
```

#### From Source, Homebrew OpenSSL

You may need to run some or all of these:
You will need [Homebrew](https://brew.sh/) installed. You may then need to run
some or all of these:

```shell
xcode-select --install
Expand Down

0 comments on commit 206c0cf

Please sign in to comment.