aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Butum <alexbutum@linux.com>2014-07-08 13:03:23 +0300
committerAlex Butum <alexbutum@linux.com>2014-07-08 13:03:23 +0300
commit362567fc1a2f7553d1bbea0eb11971de3759ca27 (patch)
treefa0f47c46f6bc4e90c89549e93ce9c282d199692 /Makefile
parentcd7937b920bc6e20569033d663bd5c8f913ea9ce (diff)
downloadcrow-362567fc1a2f7553d1bbea0eb11971de3759ca27.tar.gz
crow-362567fc1a2f7553d1bbea0eb11971de3759ca27.zip
Use -std=c++1y flag to workaround initialized lambda captures are a C++1y extension warning
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 40a7606..3b7be62 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ binaries=covtest example
all: covtest example
example: example.cpp settings.h crow.h http_server.h http_connection.h parser.h http_response.h routing.h common.h utility.h json.h datetime.h logging.h
- g++ -Wall -g -O3 -std=c++11 -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -ltcmalloc_minimal -I http-parser/
+ g++ -Wall -g -O3 -std=c++1y -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -ltcmalloc_minimal -I http-parser/
test: covtest
@@ -14,11 +14,11 @@ runtest: example
pkill example
unittest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
- g++ -Wall -g -std=c++11 -o unittest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
+ g++ -Wall -g -std=c++1y -o unittest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
./unittest
covtest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
- g++ -Wall -g -std=c++11 -o covtest --coverage unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
+ g++ -Wall -g -std=c++1y -o covtest --coverage unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
./covtest
gcov -r unittest.cpp