Skip to content

Commit fe51c9e

Browse files
authored
Merge pull request hyrise#77 from lawben/master
Add stringLength information to Statement
2 parents 0fc6daf + 2f5502c commit fe51c9e

8 files changed

Lines changed: 589 additions & 545 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $(LIB_BUILD): $(LIB_OBJ)
6060
$(LIBLINKER) $(LIB_LFLAGS) $(LIB_BUILD) $(LIB_OBJ)
6161

6262
$(SRCPARSER)/flex_lexer.o: $(SRCPARSER)/flex_lexer.cpp $(SRCPARSER)/bison_parser.cpp
63-
$(CXX) $(LIB_CFLAGS) -c -o $@ $< -Wno-sign-compare -Wno-unneeded-internal-declaration
63+
$(CXX) $(LIB_CFLAGS) -c -o $@ $< -Wno-sign-compare -Wno-unneeded-internal-declaration -Wno-register
6464

6565
%.o: %.cpp $(PARSER_CPP) $(LIB_H)
6666
$(CXX) $(LIB_CFLAGS) -c -o $@ $<

‎src/parser/Makefile‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# bison's version is too old on OSX, allow user to pass in custom path
2+
BISON?=bison
13

24
all: bison_parser.cpp flex_lexer.cpp
35

46
bison_parser.cpp: bison_parser.y
5-
@bison --version | head -n 1
6-
bison bison_parser.y --output=bison_parser.cpp --defines=bison_parser.h --verbose
7+
@$(BISON) --version | head -n 1
8+
$(BISON) bison_parser.y --output=bison_parser.cpp --defines=bison_parser.h --verbose
79

810
flex_lexer.cpp: flex_lexer.l
911
@flex --version
@@ -14,4 +16,4 @@ clean:
1416

1517
# Tests if the parser builds correctly and doesn't contain conflicts.
1618
test:
17-
! bison bison_parser.y -v --output=conflict_test.cpp 2>&1 | grep "conflict" >&2
19+
! $(BISON) bison_parser.y -v --output=conflict_test.cpp 2>&1 | grep "conflict" >&2

0 commit comments

Comments
 (0)