add AddressSanitizer (ASan): -fsanitize=address v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 11:45:05 +0200
branchv_0
changeset 11 83c3cf486bdf
parent 10 7fe3975f7e4b
child 12 2d7109286408
add AddressSanitizer (ASan): -fsanitize=address
nbproject/Makefile-Debug.mk
nbproject/configurations.xml
--- a/nbproject/Makefile-Debug.mk	Mon Aug 13 21:30:32 2018 +0200
+++ b/nbproject/Makefile-Debug.mk	Sat Aug 25 11:45:05 2018 +0200
@@ -43,8 +43,8 @@
 CFLAGS=
 
 # CC Compiler Flags
-CCFLAGS=
-CXXFLAGS=
+CCFLAGS=-fsanitize=address
+CXXFLAGS=-fsanitize=address
 
 # Fortran Compiler Flags
 FFLAGS=
--- a/nbproject/configurations.xml	Mon Aug 13 21:30:32 2018 +0200
+++ b/nbproject/configurations.xml	Sat Aug 25 11:45:05 2018 +0200
@@ -45,6 +45,9 @@
         <rebuildPropChanged>false</rebuildPropChanged>
       </toolsSet>
       <compileType>
+        <ccTool>
+          <commandLine>-fsanitize=address</commandLine>
+        </ccTool>
       </compileType>
       <item path="include/relpipe/reader/DataTypeReader.h"
             ex="false"