add AddressSanitizer (ASan): -fsanitize=address v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 11:44:39 +0200
branchv_0
changeset 4 efe39602b34b
parent 3 88e1bb50d00c
child 5 cbd242f2b9a7
add AddressSanitizer (ASan): -fsanitize=address
nbproject/Makefile-Debug.mk
nbproject/configurations.xml
--- a/nbproject/Makefile-Debug.mk	Mon Aug 13 20:38:41 2018 +0200
+++ b/nbproject/Makefile-Debug.mk	Sat Aug 25 11:44:39 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	Mon Aug 13 20:38:41 2018 +0200
+++ b/nbproject/configurations.xml	Sat Aug 25 11:44:39 2018 +0200
@@ -37,6 +37,9 @@
         <rebuildPropChanged>false</rebuildPropChanged>
       </toolsSet>
       <compileType>
+        <ccTool>
+          <commandLine>-fsanitize=address</commandLine>
+        </ccTool>
       </compileType>
       <item path="CLI.cpp" ex="false" tool="1" flavor2="0">
       </item>