summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-15 09:01:02 -0600
committerBrian Paul <[email protected]>2012-09-15 09:01:15 -0600
commite78ebbc5f9448d459b57884d90b0a6496294c1dd (patch)
tree15207fae1dac88c645ac9658aa28c5d7c2490449 /src
parent2f5f7bd687a2d0d2d7c37846382e46a0d9401397 (diff)
scons: add new -p (prefix) options for yacc
These were recently added to the Makefiles.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/SConscript2
-rw-r--r--src/mesa/SConscript2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/SConscript b/src/glsl/SConscript
index 0855c67bb4e..b034f3b06dc 100644
--- a/src/glsl/SConscript
+++ b/src/glsl/SConscript
@@ -17,7 +17,7 @@ env.Prepend(CPPPATH = [
# Make glcpp-parse.h and glsl_parser.h reachable from the include path.
env.Append(CPPPATH = [Dir('.').abspath, Dir('glcpp').abspath])
-env.Append(YACCFLAGS = '-d')
+env.Append(YACCFLAGS = '-d -p "glcpp_parser_"')
parser_env = env.Clone()
parser_env.Append(YACCFLAGS = [
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 920b545a89b..dba75a26448 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -280,7 +280,7 @@ statetracker_sources = [
'state_tracker/st_texture.c',
]
-env.Append(YACCFLAGS = '-d')
+env.Append(YACCFLAGS = '-d -p "_mesa_program_"')
program_lex = env.CFile('program/lex.yy.c', 'program/program_lexer.l')
program_parse = env.CFile('program/program_parse.tab.c',
'program/program_parse.y')