From c5a30d39a0a1340c2ac976ed853900e46e836fc3 Mon Sep 17 00:00:00 2001 From: Vladimir Chebotarev Date: Wed, 4 Dec 2019 12:46:39 +0300 Subject: [PATCH] Added `-D LINKER_NAME=lld` to instruction to sanitizers. --- dbms/tests/instructions/sanitizers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/tests/instructions/sanitizers.md b/dbms/tests/instructions/sanitizers.md index cfa465fcbda..b73c3f022bc 100644 --- a/dbms/tests/instructions/sanitizers.md +++ b/dbms/tests/instructions/sanitizers.md @@ -9,7 +9,7 @@ mkdir build_asan && cd build_asan Note: using clang instead of gcc is strongly recommended. ``` -CC=clang CXX=clang++ cmake -D SANITIZE=address .. +CC=clang CXX=clang++ cmake -D SANITIZE=address -D LINKER_NAME=lld .. ninja ``` @@ -33,7 +33,7 @@ mkdir build_tsan && cd build_tsan ``` ``` -CC=clang CXX=clang++ cmake -D SANITIZE=thread .. +CC=clang CXX=clang++ cmake -D SANITIZE=thread -D LINKER_NAME=lld .. ninja ``` @@ -53,7 +53,7 @@ mkdir build_ubsan && cd build_ubsan Note: clang is mandatory, because gcc (in version 8) has false positives due to devirtualization and it has less amount of checks. ``` -CC=clang CXX=clang++ cmake -D SANITIZE=undefined .. +CC=clang CXX=clang++ cmake -D SANITIZE=undefined -D LINKER_NAME=lld .. ninja ``` @@ -67,5 +67,5 @@ sudo -u clickhouse UBSAN_OPTIONS='print_stacktrace=1' ./clickhouse-ubsan server # How to use Memory Sanitizer ``` -CC=clang-8 CXX=clang++-8 cmake -D ENABLE_HDFS=0 -D ENABLE_CAPNP=0 -D ENABLE_RDKAFKA=0 -D ENABLE_ICU=0 -D ENABLE_POCO_MONGODB=0 -D ENABLE_POCO_NETSSL=0 -D ENABLE_POCO_ODBC=0 -D ENABLE_ODBC=0 -D ENABLE_MYSQL=0 -D ENABLE_EMBEDDED_COMPILER=0 -D USE_INTERNAL_CAPNP_LIBRARY=0 -D USE_SIMDJSON=0 -DENABLE_READLINE=0 -D SANITIZE=memory .. +CC=clang-8 CXX=clang++-8 cmake -D ENABLE_HDFS=0 -D ENABLE_CAPNP=0 -D ENABLE_RDKAFKA=0 -D ENABLE_ICU=0 -D ENABLE_POCO_MONGODB=0 -D ENABLE_POCO_NETSSL=0 -D ENABLE_POCO_ODBC=0 -D ENABLE_ODBC=0 -D ENABLE_MYSQL=0 -D ENABLE_EMBEDDED_COMPILER=0 -D USE_INTERNAL_CAPNP_LIBRARY=0 -D USE_SIMDJSON=0 -D ENABLE_READLINE=0 -D SANITIZE=memory -D LINKER_NAME=lld-8 .. ```