add AddressSanitizer (ASan): -fsanitize=address v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 11:44:56 +0200
branchv_0
changeset 1 6c083a96dcca
parent 0 0f855036489e
child 2 57cba55241ed
add AddressSanitizer (ASan): -fsanitize=address
nbproject/Makefile-Debug.mk
nbproject/configurations.xml
--- a/nbproject/Makefile-Debug.mk	Sun Aug 19 20:34:11 2018 +0200
+++ b/nbproject/Makefile-Debug.mk	Sat Aug 25 11:44:56 2018 +0200
@@ -42,8 +42,8 @@
 CFLAGS=
 
 # CC Compiler Flags
-CCFLAGS=
-CXXFLAGS=
+CCFLAGS=-fsanitize=address
+CXXFLAGS=-fsanitize=address
 
 # Fortran Compiler Flags
 FFLAGS=
--- a/nbproject/configurations.xml	Sun Aug 19 20:34:11 2018 +0200
+++ b/nbproject/configurations.xml	Sat Aug 25 11:44:56 2018 +0200
@@ -37,6 +37,9 @@
         <rebuildPropChanged>false</rebuildPropChanged>
       </toolsSet>
       <compileType>
+        <ccTool>
+          <commandLine>-fsanitize=address</commandLine>
+        </ccTool>
       </compileType>
       <item path="include/relpipe/protocol/constants.h"
             ex="false"