-
-
Notifications
You must be signed in to change notification settings - Fork 915
Debuging Check Flags
Justin Hammond edited this page Jun 19, 2019
·
4 revisions
To Compile with AddressSanitizer on OSX:
PATH="/usr/local/opt/llvm/bin:$PATH" CXXFLAGS="-fsanitize=address -O1 -fno-omit-frame-pointer -g" CFLAGS="-fsanitize=address -O1 -fno-omit-frame-pointer -g" CPPFLAGS="-fsanitize=address -O1 -fno-omit-frame-pointer -g" BUILD=debug LDFLAGS="-L/usr/local/opt/llvm/lib -fsanitize=address" make -j4
ASAN_OPTIONS=detect_leaks=1:debug=true: LSAN_OPTIONS=suppressions=cpp/build/LeakSanitizer-Suppressions.txt ./MinOZW
ASAN_OPTIONS=detect_leaks=1:debug=true:strict_string_checks=true:atexit=true:print_stats=true:detect_stack_use_after_return=true:check_initialization_order=true ./MinOZW