Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e8135499
Commit
e8135499
authored
Sep 11, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport "Fix generation of bison output for out-of-source builds."to 10.5
Apply
115fec58
to 10.5
parent
8fe927e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
.gitignore
.gitignore
+1
-0
sql/CMakeLists.txt
sql/CMakeLists.txt
+3
-2
sql/myskel.m4.in
sql/myskel.m4.in
+2
-7
No files found.
.gitignore
View file @
e8135499
...
@@ -193,6 +193,7 @@ sql/lex_token.h
...
@@ -193,6 +193,7 @@ sql/lex_token.h
sql/gen_lex_token
sql/gen_lex_token
sql/gen_lex_hash
sql/gen_lex_hash
sql/lex_hash.h
sql/lex_hash.h
sql/myskel.m4
sql/mysql_tzinfo_to_sql
sql/mysql_tzinfo_to_sql
sql/mysqld
sql/mysqld
sql/sql_builtin.cc
sql/sql_builtin.cc
...
...
sql/CMakeLists.txt
View file @
e8135499
...
@@ -352,12 +352,13 @@ IF (NOT BISON_FOUND)
...
@@ -352,12 +352,13 @@ IF (NOT BISON_FOUND)
MESSAGE
(
FATAL_ERROR
${
ERRMSG
}
)
MESSAGE
(
FATAL_ERROR
${
ERRMSG
}
)
ENDIF
()
ENDIF
()
ELSE
()
ELSE
()
CONFIGURE_FILE
(
myskel.m4.in myskel.m4
)
BISON_TARGET
(
gen_mariadb_cc_hh
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_mariadb.yy
BISON_TARGET
(
gen_mariadb_cc_hh
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_mariadb.yy
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_mariadb.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_mariadb.cc
COMPILE_FLAGS
"-p MYSQL -S
${
CMAKE_CURRENT_
SOURCE
_DIR
}
/myskel.m4"
)
COMPILE_FLAGS
"-p MYSQL -S
${
CMAKE_CURRENT_
BINARY
_DIR
}
/myskel.m4"
)
BISON_TARGET
(
gen_oracle_cc_hh
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_oracle.yy
BISON_TARGET
(
gen_oracle_cc_hh
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_oracle.yy
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_oracle.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/yy_oracle.cc
COMPILE_FLAGS
"-p ORA -S
${
CMAKE_CURRENT_
SOURCE
_DIR
}
/myskel.m4"
)
COMPILE_FLAGS
"-p ORA -S
${
CMAKE_CURRENT_
BINARY
_DIR
}
/myskel.m4"
)
ENDIF
()
ENDIF
()
IF
(
NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
IF
(
NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
...
...
sql/myskel.m4
→
sql/myskel.m4
.in
View file @
e8135499
...
@@ -2,15 +2,10 @@
...
@@ -2,15 +2,10 @@
# fix the #line directives in the generated .cc files
# fix the #line directives in the generated .cc files
# to refer to the original sql_yacc.yy
# to refer to the original sql_yacc.yy
#
#
m4_define([yyfile],m4_bpatsubst(__file__,[[a-z.0-9]+$],sql_yacc.yy))
m4_define([b4_syncline],
m4_define([b4_syncline],
[m4_if(m4_index([$2],[.yy]),[-1],
[b4_sync_start([$1], m4_bpatsubst([$2],[@CMAKE_CURRENT_BINARY_DIR@/yy_[a-z]+\.yy],@CMAKE_CURRENT_SOURCE_DIR@/sql_yacc.yy))[]dnl
[b4_sync_start([$1], [$2])[]dnl
],[b4_sync_start([$1], ["yyfile"])[]dnl
])
])
])
# try both paths for different bison versions
# try both paths for different bison versions
m4_sinclude(skeletons/c-skel.m4)
m4_sinclude(skeletons/c-skel.m4)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment