add AddressSanitizer (ASan): -fsanitize=address v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 11:43:54 +0200
branchv_0
changeset 1 3baaddffae5b
parent 0 f3c48d58d591
child 2 31ef97e63eb0
add AddressSanitizer (ASan): -fsanitize=address
nbproject/Makefile-Debug.mk
nbproject/configurations.xml
--- a/nbproject/Makefile-Debug.mk	Sat Aug 25 11:40:13 2018 +0200
+++ b/nbproject/Makefile-Debug.mk	Sat Aug 25 11:43:54 2018 +0200
@@ -41,8 +41,8 @@
 CFLAGS=
 
 # CC Compiler Flags
-CCFLAGS=
-CXXFLAGS=
+CCFLAGS=-fsanitize=address
+CXXFLAGS=-fsanitize=address
 
 # Fortran Compiler Flags
 FFLAGS=
--- a/nbproject/configurations.xml	Sat Aug 25 11:40:13 2018 +0200
+++ b/nbproject/configurations.xml	Sat Aug 25 11:43:54 2018 +0200
@@ -34,6 +34,9 @@
         <rebuildPropChanged>false</rebuildPropChanged>
       </toolsSet>
       <compileType>
+        <ccTool>
+          <commandLine>-fsanitize=address</commandLine>
+        </ccTool>
       </compileType>
     </conf>
     <conf name="Release" type="1">