Skip to content

Commit

Permalink
Add instructions for building without X11/Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
sckzor authored Feb 8, 2022
1 parent c2959f4 commit 7263d22
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Please refer to the [Dependencies](#dependencies) section.
16. [Windows](#windows)
17. [Other](#other)
2. [Building](#building)
1. [Linux/Windows](#linux--windows)
1. [Linux/Windows/BSD](#linux--windows--bsd)
2. [macOS](#macos)
3. [Post Build](#post-build)
1. [Terminfo](#terminfo)
Expand Down Expand Up @@ -236,12 +236,23 @@ filling in this section of the README.

## Building

### Linux / Windows
### Linux / Windows / BSD

```sh
cargo build --release
```

On Linux/BSD, if it is desired to build Alacritty without support for either the
X11 or Wayland rendering backend the following commands can be used.

```sh
# Force support for only Wayland
cargo build --release --no-default-features --features=wayland
# Force support for only X11
cargo build --release --no-default-features --features=x11
```

If all goes well, this should place a binary at `target/release/alacritty`.

### macOS
Expand Down

0 comments on commit 7263d22

Please sign in to comment.