mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Added -D LINKER_NAME=lld
to instruction to sanitizers.
This commit is contained in:
parent
8877129d60
commit
c5a30d39a0
@ -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 ..
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user