Skip to content

Commit

Permalink
debug build: build with -fsanitize=address
Browse files Browse the repository at this point in the history
Let's compile with this flag to detect memory erros in the debug build.

See https://clang.llvm.org/docs/AddressSanitizer.html

Regards: #1512
  • Loading branch information
jubalh committed Mar 24, 2021
1 parent 18172f5 commit 5f7840b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure-debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

#./configure PYTHON_VERSION=3 CFLAGS='-g3 -O0' CXXFLAGS='-g3 -O0' $@
./configure CFLAGS='-g3 -O0' CXXFLAGS='-g3 -O0' $@
./configure CFLAGS='-g3 -O0 -fsanitize=address' CXXFLAGS='-g3 -O0' $@

0 comments on commit 5f7840b

Please sign in to comment.