ASan: add AddressSanitizer g++ option: -fsanitize=address v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 28 Jul 2018 15:42:42 +0200
branchv_0
changeset 15 dc2121dec856
parent 14 cfed80d11caa
child 16 70af16946466
ASan: add AddressSanitizer g++ option: -fsanitize=address
nbproject/Makefile-Debug.mk
nbproject/configurations.xml
relpipe-in-cli.cpp
--- a/nbproject/Makefile-Debug.mk	Sat Jul 28 15:11:07 2018 +0200
+++ b/nbproject/Makefile-Debug.mk	Sat Jul 28 15:42:42 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	Sat Jul 28 15:11:07 2018 +0200
+++ b/nbproject/configurations.xml	Sat Jul 28 15:42:42 2018 +0200
@@ -48,6 +48,7 @@
         </cTool>
         <ccTool>
           <standard>11</standard>
+          <commandLine>-fsanitize=address</commandLine>
         </ccTool>
         <linkerTool>
           <linkerLibItems>
--- a/relpipe-in-cli.cpp	Sat Jul 28 15:11:07 2018 +0200
+++ b/relpipe-in-cli.cpp	Sat Jul 28 15:42:42 2018 +0200
@@ -1,8 +1,6 @@
 #include <cstdlib>
 #include <memory>
 
-#include <tuple>
-
 #include <RelationalWriter.h>
 #include <RelpipeWriterException.h>
 #include <Factory.h>