glsl2: Use bison command line option to set prefix
Bison version 2.3 doesn't seem to support %name-prefix in the source. This should fix bugzilla #29207.
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ glsl_lexer.cpp: glsl_lexer.lpp
|
||||
flex --never-interactive --outfile="$@" $<
|
||||
|
||||
glsl_parser.cpp: glsl_parser.ypp
|
||||
bison -v -o "$@" --defines=glsl_parser.h $<
|
||||
bison -v -o "$@" -p "_mesa_glsl_" --defines=glsl_parser.h $<
|
||||
|
||||
glcpp/glcpp-lex.c: glcpp/glcpp-lex.l
|
||||
flex --never-interactive --outfile="$@" $<
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
|
||||
%lex-param {void *scanner}
|
||||
%parse-param {struct _mesa_glsl_parse_state *state}
|
||||
%name-prefix "_mesa_glsl_"
|
||||
|
||||
%union {
|
||||
int n;
|
||||
|
||||
Reference in New Issue
Block a user