Commit d62e8c72 authored by Ondřej Surý's avatar Ondřej Surý

Use clang-6.0 to compile sanitizers

parent 6bfa71ca
......@@ -175,18 +175,20 @@ test:debian:unstable:amd64:
build:debian:unstable:amd64:asan:
variables:
CC: clang-6.0
CFLAGS: "-fsanitize=address -g -O2 -fno-omit-frame-pointer"
LDFLAGS: "-fsanitize=address"
ASAN_SYMBOLIZER_PATH: $(readlink -f $(dirname $(which clang))/$(dirname $(readlink $(which clang)))/llvm-symbolizer)
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-6.0
LSAN_OPTIONS: verbosity=1:log_threads=1
<<: *debian_unstable
<<: *build_job
test:debian:unstable:amd64:asan:
variables:
CC: clang-6.0
CFLAGS: "-fsanitize=address -g -O2"
LDFLAGS: "-static-libasan"
ASAN_SYMBOLIZER_PATH: $(readlink -f $(dirname $(which clang))/$(dirname $(readlink $(which clang)))/llvm-symbolizer)
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-6.0
LSAN_OPTIONS: verbosity=1:log_threads=1
<<: *debian_unstable
<<: *test_job
......@@ -195,18 +197,20 @@ test:debian:unstable:amd64:asan:
build:debian:unstable:amd64:ubsan:
variables:
CC: clang-6.0
CFLAGS: "-fsanitize=undefined -g -O2"
LDFLAGS: "-fsanitize=undefined"
UBSAN_SYMBOLIZER_PATH: $(readlink -f $(dirname $(which clang))/$(dirname $(readlink $(which clang)))/llvm-symbolizer)
UBSAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-6.0
UBSAN_OPTIONS: print_stacktrace=1
<<: *debian_unstable
<<: *build_job
test:debian:unstable:amd64:ubsan:
variables:
CC: clang-6.0
CFLAGS: "-fsanitize=undefined -g -O2"
LDFLAGS: "-fsanitize=undefined"
UBSAN_SYMBOLIZER_PATH: $(readlink -f $(dirname $(which clang))/$(dirname $(readlink $(which clang)))/llvm-symbolizer)
UBSAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-6.0
UBSAN_OPTIONS: print_stacktrace=1
<<: *debian_unstable
<<: *test_job
......
......@@ -11,7 +11,7 @@ RUN apt-get -y install \
autotools-dev \
bash-completion \
build-essential \
clang \
clang-6.0 \
curl \
ghostscript \
git \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment