diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-08 22:01:45 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-08 22:02:28 +0200 |
commit | 115fec58f16d3c49a4507a81725c5ff969bf6af4 (patch) | |
tree | 96423bf1300bfc451201a5a61d422790826930d4 /sql/myskel.m4.in | |
parent | 78084fa747f373f2b404c3cb543d19f439100d9e (diff) | |
download | mariadb-git-115fec58f16d3c49a4507a81725c5ff969bf6af4.tar.gz |
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.
Diffstat (limited to 'sql/myskel.m4.in')
-rw-r--r-- | sql/myskel.m4.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/myskel.m4.in b/sql/myskel.m4.in new file mode 100644 index 00000000000..13a39f9675c --- /dev/null +++ b/sql/myskel.m4.in @@ -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) + |