Bug: https://github.com/skvadrik/re2c/issues/215
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
#!/bin/sh
# normal tests
-for d in __build{,_asan,_ubsan,_lsan,_clang,_m32} ; do
+for d in __build{,_asan,_ubsan,_lsan,_clang,_clang_msan,_m32} ; do
./${d}.sh \
&& cd ${d} \
- && make tests \
+ && make check VERBOSE=1 \
&& cd .. \
|| { cd .. ; echo "*** ${d} failed ***"; exit 1; }
done
mkdir $builddir
cd $builddir
-../configure CXX=clang++ && \
+../configure CC=clang CXX=clang++ && \
make -j5
cd ..
--- /dev/null
+#!/bin/sh
+
+builddir=__build_clang_msan
+rm -rf $builddir
+mkdir $builddir
+
+cd $builddir
+../configure CC=clang CXX=clang++ CFLAGS="-fsanitize=memory" CXXFLAGS="-fsanitize=memory" LDFLAGS="-fsanitize=memory" && \
+make -j5
+cd ..