mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fix generation of bison output for out-of-source builds.
Make sure the #line directives contain existing source file sql_yacc.yy. Before the patch #line directive would point out to non-existing path in current build directory.
This commit is contained in:
parent
78084fa747
commit
115fec58f1
3 changed files with 5 additions and 3 deletions
13
sql/myskel.m4.in
Normal file
13
sql/myskel.m4.in
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# fix the #line directives in the generated .cc files
|
||||
# to refer to the original sql_yacc.yy
|
||||
#
|
||||
m4_define([b4_syncline],
|
||||
[b4_sync_start([$1], m4_bpatsubst([$2],[@CMAKE_CURRENT_BINARY_DIR@/yy_[a-z]+\.yy],@CMAKE_CURRENT_SOURCE_DIR@/sql_yacc.yy))[]dnl
|
||||
|
||||
])
|
||||
|
||||
# try both paths for different bison versions
|
||||
m4_sinclude(skeletons/c-skel.m4)
|
||||
m4_sinclude(c-skel.m4)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue