Switch to C++1z
This commit is contained in:
parent
2316e07d52
commit
5346810e67
4
Makefile
4
Makefile
|
@ -37,7 +37,7 @@ PARSER_CPP = $(SRCPARSER)/bison_parser.cpp $(SRCPARSER)/flex_lexer.cpp
|
||||||
PARSER_H = $(SRCPARSER)/bison_parser.h $(SRCPARSER)/flex_lexer.h
|
PARSER_H = $(SRCPARSER)/bison_parser.h $(SRCPARSER)/flex_lexer.h
|
||||||
|
|
||||||
LIB_BUILD = libsqlparser.so
|
LIB_BUILD = libsqlparser.so
|
||||||
LIB_CFLAGS = -std=c++11 -Wall -Werror -fPIC $(OPT_FLAG)
|
LIB_CFLAGS = -std=c++1z -Wall -Werror -fPIC $(OPT_FLAG)
|
||||||
LIB_LFLAGS = -shared $(OPT_FLAG)
|
LIB_LFLAGS = -shared $(OPT_FLAG)
|
||||||
LIB_CPP = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(PARSER_CPP)
|
LIB_CPP = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(PARSER_CPP)
|
||||||
LIB_H = $(shell find $(SRC) -name '*.h' -not -path "$(SRCPARSER)/*") $(PARSER_H)
|
LIB_H = $(shell find $(SRC) -name '*.h' -not -path "$(SRCPARSER)/*") $(PARSER_H)
|
||||||
|
@ -110,7 +110,7 @@ $(BM_BUILD): $(BM_ALL) $(LIB_BUILD)
|
||||||
############ Test & Example ############
|
############ Test & Example ############
|
||||||
########################################
|
########################################
|
||||||
TEST_BUILD = $(BIN)/tests
|
TEST_BUILD = $(BIN)/tests
|
||||||
TEST_CFLAGS = -std=c++11 -Wall -Werror -Isrc/ -Itest/ -L./ $(OPT_FLAG)
|
TEST_CFLAGS = -std=c++1z -Wall -Werror -Isrc/ -Itest/ -L./ $(OPT_FLAG)
|
||||||
TEST_CPP = $(shell find test/ -name '*.cpp')
|
TEST_CPP = $(shell find test/ -name '*.cpp')
|
||||||
TEST_ALL = $(shell find test/ -name '*.cpp') $(shell find test/ -name '*.h')
|
TEST_ALL = $(shell find test/ -name '*.cpp') $(shell find test/ -name '*.h')
|
||||||
EXAMPLE_SRC = $(shell find example/ -name '*.cpp') $(shell find example/ -name '*.h')
|
EXAMPLE_SRC = $(shell find example/ -name '*.cpp') $(shell find example/ -name '*.h')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
CFLAGS = -std=c++11 -lstdc++ -Wall -Werror -I../src/ -L../
|
CFLAGS = -std=c++1z -lstdc++ -Wall -Werror -I../src/ -L../
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser
|
$(CXX) $(CFLAGS) example.cpp -o example -lsqlparser
|
||||||
|
|
Loading…
Reference in New Issue