From: José Fonseca Date: Thu, 2 Aug 2012 15:40:40 +0000 (-0600) Subject: scons: set YACCHXXFILESUFFIX to stop needless rebuilding of the parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bd36956f82b30b1edc299e6d6e34e1bc911af01;p=mesa.git scons: set YACCHXXFILESUFFIX to stop needless rebuilding of the parser Before, the GLSL parser was getting rebuilt every time that scons was run. The problem was scons was expecting a glsl_parser.hpp file but we were generating a glsl_parser.h file. Signed-off-by: Brian Paul --- diff --git a/src/glsl/SConscript b/src/glsl/SConscript index 2fc57c6dd5f..0855c67bb4e 100644 --- a/src/glsl/SConscript +++ b/src/glsl/SConscript @@ -25,6 +25,10 @@ parser_env.Append(YACCFLAGS = [ '-p', '_mesa_glsl_', ]) +# without this line scons will expect "glsl_parser.hpp" instead of +# "glsl_parser.h", causing glsl_parser.cpp to be regenerated every time +parser_env['YACCHXXFILESUFFIX'] = '.h' + glcpp_lexer = env.CFile('glcpp/glcpp-lex.c', 'glcpp/glcpp-lex.l') glcpp_parser = env.CFile('glcpp/glcpp-parse.c', 'glcpp/glcpp-parse.y') glsl_lexer = parser_env.CXXFile('glsl_lexer.cpp', 'glsl_lexer.ll')