8 mkdir -p "$cwd/../debug"
11 export CC=clang CXX=clang++
12 # undefined,float-cast-overflow,thread,memory,address
14 export CXXFLAGS="$CXXFLAGS -fsanitize=$sanitizers -fno-omit-frame-pointer -fno-optimize-sibling-calls"
15 export LDFLAGS="$LDFLAGS -fsanitize=$sanitizers"
17 cmake ../ -DCMAKE_BUILD_TYPE=Debug \
18 -DCMAKE_INSTALL_PREFIX=/usr \
19 -DKATIE_SETTINGS_FULL=/etc/xdg \
20 -DKATIE_LDCONF_FULL=/etc/ld.so.conf.d \
21 -DKATIE_PROFILE_FULL=/etc/profile.d $@
22 make -j$(nproc || echo 1)