author | František Kučera <franta-hg@frantovo.cz> |
Mon, 24 Sep 2018 13:47:02 +0200 | |
branch | v_0 |
changeset 1 | 0e791c64f38b |
parent 0 | ba16fce7ef20 |
child 2 | 7ba3ae8cf1fc |
permissions | -rw-r--r-- |
1
0e791c64f38b
add ASan AddressSanitizer to detect memory leaks
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
1 |
# Add ASan AddressSanitizer |
0e791c64f38b
add ASan AddressSanitizer to detect memory leaks
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
2 |
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
0e791c64f38b
add ASan AddressSanitizer to detect memory leaks
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
3 |
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
0e791c64f38b
add ASan AddressSanitizer to detect memory leaks
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
4 |
# From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer." |
0e791c64f38b
add ASan AddressSanitizer to detect memory leaks
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
5 |
|
0
ba16fce7ef20
create cmake+netbeans project
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
add_executable (relpipe-out-chart relpipe-out-chart.cpp) |