Skip to content

Commit

Permalink
docs: update sanitizers section in INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperi committed Nov 14, 2024
1 parent 07cff6e commit 675c1a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ pro hand -p true -s false -n false SIGSEGV

### Sanitizers

Musl does not have proper sanitizer support, so until we support native (GNU) linux builds, these are limited to mac only.
Sanitizers are supported for native builds only and you need to have `llvm-18` (and `clang-18` on linux) installed on your machine.

In order to use address sanitizer (`-Dasan`) and undefined behavior sanitizer (`-Dubsan`), you need to have version 18 of llvm installed on your machine. You also have to build natively, since cross-compilation is not supported.
For native linux builds this is the only situation where we actually build against the native abi. Normally we build agains musl even on native gnu machines.

macOS:
```terminal
brew install llvm@18
```

<!-- linux: -->
<!-- ```terminal -->
<!-- apt-get install llvm-18 clang-18 -->
<!-- ``` -->
Ubuntu:
```terminal
apt-get install llvm-18 clang-18
```

## Build

Expand Down

0 comments on commit 675c1a4

Please sign in to comment.