ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: document how to compile a statically linked binary on Mac

I feel like this is worth documenting, as it shouldn't require
Homebrew.
This commit is contained in:
Ilya Grigoriev 2024-07-25 19:25:02 -07:00
parent fd52efa0ba
commit 206c0cf830

View file

@ -95,9 +95,33 @@ brew install jj
### Mac
#### From Source
#### From Source, Vendored OpenSSL
You may need to run some or all of these:
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 will need [Homebrew](https://brew.sh/) installed. You may then need to run
some or all of these:
```shell
xcode-select --install