Skip to content

Commit

Permalink
tests: Build postinstall example with ASAN
Browse files Browse the repository at this point in the history
CI builds the library with ASAN enabled, so the example must link with it.
  • Loading branch information
hpjansson committed Sep 17, 2023
1 parent 58ef8ba commit 153d8cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/postinstall.sh
Expand Up @@ -2,5 +2,11 @@

set -evx

cc -g example.c $(pkg-config --libs --cflags chafa) -o example
cc -g \
-fsanitize=address,undefined \
-fsanitize-undefined-trap-on-error \
$(pkg-config --libs --cflags chafa) \
example.c \
-o example

./example

0 comments on commit 153d8cc

Please sign in to comment.