Added sanitizer targets
This commit is contained in:
parent
1de541a3c0
commit
16bcd21493
3 changed files with 7 additions and 1 deletions
3
scripts/asan_clang.sh
Executable file
3
scripts/asan_clang.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
script_dir="$(dirname "$0")"
|
||||||
|
cmake -D CMAKE_C_COMPILER=clang-9 -D CMAKE_CXX_COMPILER=clang++-9 -D CMAKE_CXX_FLAGS="-fsanitize=address" -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B .
|
||||||
4
scripts/msan_clang.sh
Executable file
4
scripts/msan_clang.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
script_dir="$(dirname "$0")"
|
||||||
|
echo "DON'T USE: libc++ is not instrumented with msan..."
|
||||||
|
cmake -D CMAKE_C_COMPILER=clang-9 -D CMAKE_CXX_COMPILER=clang++-9 -D CMAKE_CXX_FLAGS="-fsanitize=memory -fsanitize=undefined -fsanitize-memory-track-origins" -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B .
|
||||||
|
|
@ -54,7 +54,6 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
inline static std::atomic<int> fileBuffers { 0 };
|
inline static std::atomic<int> fileBuffers { 0 };
|
||||||
int preloadedFilesWritten {0};
|
|
||||||
moodycamel::BlockingReaderWriterQueue<FileLoadingInformation> loadingQueue;
|
moodycamel::BlockingReaderWriterQueue<FileLoadingInformation> loadingQueue;
|
||||||
void loadingThread();
|
void loadingThread();
|
||||||
std::thread fileLoadingThread;
|
std::thread fileLoadingThread;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue