~rcr/rirc

ref: 6660defeb7bade304a22a44e5e9650fc4906adc2 rirc/scripts/sanitizers_build.sh -rwxr-xr-x 430 bytes
6660defe — Richard Robbins fix sanitizer scripts linker flags 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -e

export CC=clang

export CFLAGS_DEBUG="-fsanitize=address,undefined -fno-omit-frame-pointer"
export LDFLAGS_DEBUG="-fsanitize=address,undefined -fuse-ld=lld"

make clean rirc.debug

mv rirc.debug rirc.debug.address

export CFLAGS_DEBUG="-fsanitize=thread,undefined -fno-omit-frame-pointer"
export LDFLAGS_DEBUG="-fsanitize=thread,undefined -fuse-ld=lld"

make clean rirc.debug

mv rirc.debug rirc.debug.thread