Browse Source

README: Document building with -fsanitize options.

master
Reece H. Dunn 7 years ago
parent
commit
39b8768a79
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      README.md

+ 12
- 0
README.md View File

@@ -7,6 +7,7 @@
- [Dependencies](#dependencies)
- [Building](#building-1)
- [Cross Compilation](#cross-compilation)
- [Sanitizer](#sanitizer)
- [eSpeak NG Feature Configuration](#espeak-ng-feature-configuration)
- [Extended Dictionary Configuration](#extended-dictionary-configuration)
- [Testing](#testing)
@@ -176,6 +177,17 @@ built it locally you can perform the cross compilation using:
./configure --build=... --host=... --target=...
make -B src/espeak-ng src/speak-ng

#### Sanitizer

It is possible to build eSpeak NG with the gcc or clang sanitizer by passing
the appropriate `CFLAGS` and `LDFLAGS` options to `configure`. For example:

CFLAGS="-fsanitize=address,undefined -g" \
LDFLAGS="-fsanitize=address,undefined" \
CC=clang-6.0 ./configure
make
make check

#### eSpeak NG Feature Configuration

The following `configure` options control which eSpeak NG features are enabled:

Loading…
Cancel
Save