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
f7c6c02a
Commit
f7c6c02a
authored
Nov 09, 2021
by
Sergei Krivonos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "improve build, allow sql library to be built in parallel with builtins"
This reverts commit
1a3570de
.
parent
ff08e948
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
49 deletions
+8
-49
extra/mariabackup/CMakeLists.txt
extra/mariabackup/CMakeLists.txt
+2
-4
sql/CMakeLists.txt
sql/CMakeLists.txt
+3
-14
unittest/sql/CMakeLists.txt
unittest/sql/CMakeLists.txt
+3
-5
unittest/sql/dummy_builtins.cc
unittest/sql/dummy_builtins.cc
+0
-26
No files found.
extra/mariabackup/CMakeLists.txt
View file @
f7c6c02a
...
...
@@ -75,7 +75,6 @@ MYSQL_ADD_EXECUTABLE(mariabackup
backup_mysql.cc
backup_copy.cc
encryption_plugin.cc
${
PROJECT_BINARY_DIR
}
/sql/sql_builtin.cc
${
PROJECT_SOURCE_DIR
}
/sql/net_serv.cc
${
NT_SERVICE_SOURCE
}
${
PROJECT_SOURCE_DIR
}
/libmysqld/libmysql.c
...
...
@@ -83,14 +82,13 @@ MYSQL_ADD_EXECUTABLE(mariabackup
)
# Export all symbols on Unix, for better crash callstacks
SET_TARGET_PROPERTIES
(
mariabackup PROPERTIES ENABLE_EXPORTS TRUE
)
ADD_SUBDIRECTORY
(
crc
)
TARGET_LINK_LIBRARIES
(
mariabackup sql sql_builtins crc
)
TARGET_LINK_LIBRARIES
(
mariabackup sql crc
)
IF
(
NOT HAVE_SYSTEM_REGEX
)
TARGET_LINK_LIBRARIES
(
mariabackup pcreposix
)
ENDIF
()
...
...
sql/CMakeLists.txt
View file @
f7c6c02a
...
...
@@ -145,11 +145,11 @@ SET (SQL_SOURCE
${
WSREP_SOURCES
}
table_cache.cc encryption.cc temporary_tables.cc
proxy_protocol.cc backup.cc xa.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_builtin.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc_ora.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_hash.h
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_token.h
${
GEN_SOURCES
}
${
MYSYS_LIBWRAP_SOURCE
}
)
...
...
@@ -177,20 +177,13 @@ RECOMPILE_FOR_EMBEDDED)
ADD_LIBRARY
(
sql STATIC
${
SQL_SOURCE
}
)
DTRACE_INSTRUMENT
(
sql
)
TARGET_LINK_LIBRARIES
(
sql
TARGET_LINK_LIBRARIES
(
sql
${
MYSQLD_STATIC_PLUGIN_LIBS
}
mysys mysys_ssl dbug strings vio pcre
${
LIBWRAP
}
${
LIBCRYPT
}
${
CMAKE_DL_LIBS
}
${
CMAKE_THREAD_LIBS_INIT
}
${
WSREP_LIB
}
${
SSL_LIBRARIES
}
${
LIBSYSTEMD
}
)
FOREACH
(
se aria partition perfschema sql_sequence
)
# These engines are used directly in sql sources.
IF
(
TARGET
${
se
}
)
TARGET_LINK_LIBRARIES
(
sql
${
se
}
)
ENDIF
()
ENDFOREACH
()
IF
(
WIN32
)
SET
(
MYSQLD_SOURCE main.cc nt_servc.cc message.rc
)
TARGET_LINK_LIBRARIES
(
sql psapi
)
...
...
@@ -274,9 +267,6 @@ IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
SET_TARGET_PROPERTIES
(
mysqld_import_lib PROPERTIES IMPORTED_LOCATION
${
MYSQLD_LIB
}
)
ENDIF
()
ADD_LIBRARY
(
sql_builtins
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_builtin.cc
)
TARGET_LINK_LIBRARIES
(
sql_builtins
${
MYSQLD_STATIC_PLUGIN_LIBS
}
)
MYSQL_ADD_EXECUTABLE
(
mysqld
${
MYSQLD_SOURCE
}
DESTINATION
${
INSTALL_SBINDIR
}
COMPONENT Server
)
IF
(
APPLE
)
...
...
@@ -304,8 +294,7 @@ IF(NOT WITHOUT_DYNAMIC_PLUGINS)
ENDIF
()
ENDIF
(
NOT WITHOUT_DYNAMIC_PLUGINS
)
TARGET_LINK_LIBRARIES
(
mysqld LINK_PRIVATE sql sql_builtins
)
TARGET_LINK_LIBRARIES
(
mysqld LINK_PRIVATE sql
)
# Provide plugins with minimal set of libraries
SET
(
INTERFACE_LIBS
${
LIBRT
}
)
...
...
unittest/sql/CMakeLists.txt
View file @
f7c6c02a
...
...
@@ -21,12 +21,10 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
IF
(
WIN32
)
ADD_EXECUTABLE
(
explain_filename-t
explain_filename-t.cc
dummy_builtins.cc
../../sql/nt_servc.cc
)
ADD_EXECUTABLE
(
explain_filename-t explain_filename-t.cc
../../sql/nt_servc.cc
)
ELSE
()
ADD_EXECUTABLE
(
explain_filename-t explain_filename-t.cc
dummy_builtins.cc
)
ADD_EXECUTABLE
(
explain_filename-t explain_filename-t.cc
)
ENDIF
()
TARGET_LINK_LIBRARIES
(
explain_filename-t sql mytap
)
...
...
unittest/sql/dummy_builtins.cc
deleted
100644 → 0
View file @
ff08e948
/* 2018 MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include <my_global.h>
#include <mysql/plugin.h>
struct
st_maria_plugin
*
mysql_optional_plugins
[]
=
{
0
};
struct
st_maria_plugin
*
mysql_mandatory_plugins
[]
=
{
0
};
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