File tree Expand file tree Collapse file tree 7 files changed +22
-12
lines changed Expand file tree Collapse file tree 7 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ MACRO(MYSQL_ADD_PLUGIN plugin_arg)
305
305
ENDIF ()
306
306
307
307
# Add SYSTEM INCLUDE_DIRECTORIES
308
- IF (ARG_SYSTEM_INCLUDE_DIRECTORIES)
308
+ IF (BUILD_PLUGIN AND ARG_SYSTEM_INCLUDE_DIRECTORIES)
309
309
TARGET_INCLUDE_DIRECTORIES (${target} SYSTEM PRIVATE
310
310
${ARG_SYSTEM_INCLUDE_DIRECTORIES} )
311
311
ENDIF ()
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2006, 2024, Oracle and/or its affiliates.
1
+ # Copyright (c) 2006, 2024, Oracle and/or its affiliates.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License, version 2.0,
@@ -865,13 +865,6 @@ ADD_COMPILE_FLAGS(
865
865
COMPILE_FLAGS -I${CMAKE_SOURCE_DIR} /extra/lz4 -I${BUNDLED_LZ4_PATH}
866
866
)
867
867
868
- ADD_COMPILE_FLAGS(
869
- iterators/composite_iterators.cc
870
- iterators/hash_join_buffer.cc
871
- COMPILE_FLAGS
872
- -I${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include
873
- )
874
-
875
868
# Fixes "C1128: number of sections exceeded object file format limit" in MSVC
876
869
IF (WIN32 )
877
870
ADD_COMPILE_FLAGS(
@@ -964,6 +957,9 @@ MYSQL_ADD_PLUGIN(mysql_native_password
964
957
SYSTEM_INCLUDE_DIRECTORIES "${RAPIDJSON_INCLUDE_DIR} "
965
958
STATIC_ONLY DEFAULT)
966
959
960
+ TARGET_INCLUDE_DIRECTORIES (sql_main SYSTEM PUBLIC
961
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
962
+
967
963
TARGET_LINK_LIBRARIES (sql_main ${MYSQLD_STATIC_PLUGIN_LIBS}
968
964
mysql_server_component_services mysys strings vio
969
965
mysql_binlog_event ${LIBWRAP} ${LIBDL} OpenSSL::SSL OpenSSL::Crypto
Original file line number Diff line number Diff line change 31
31
32
32
#include " mysql/binlog/event/binlog_event.h"
33
33
34
+ #include < ankerl/unordered_dense.h>
34
35
#include " my_inttypes.h"
35
36
36
37
class THD ;
@@ -173,7 +174,7 @@ class Writeset_trx_dependency_tracker {
173
174
Track the last transaction sequence number that changed each row
174
175
in the database, using row hashes from the writeset as the index.
175
176
*/
176
- typedef std:: map<uint64, int64> Writeset_history ;
177
+ using Writeset_history = ankerl::unordered_dense:: map<uint64, int64>;
177
178
Writeset_history m_writeset_history;
178
179
};
179
180
Original file line number Diff line number Diff line change @@ -92,3 +92,6 @@ TARGET_COMPILE_DEFINITIONS(mysql_server_component_services
92
92
TARGET_LINK_LIBRARIES (mysql_server_component_services PRIVATE extra::rapidjson)
93
93
TARGET_LINK_LIBRARIES (mysql_server_component_services PRIVATE ext ::zlib)
94
94
ADD_DEPENDENCIES (mysql_server_component_services GenError)
95
+
96
+ TARGET_INCLUDE_DIRECTORIES (mysql_server_component_services SYSTEM PRIVATE
97
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ IF(NOT WITHOUT_SERVER)
127
127
# unless it is explicitly disabled on the command line.
128
128
MYSQL_ADD_PLUGIN(ndbcluster ${NDBCLUSTER_SOURCES} STORAGE_ENGINE
129
129
DEFAULT STATIC_ONLY
130
- LINK_LIBRARIES ndbclient_static extra::rapidjson)
130
+ LINK_LIBRARIES ndbclient_static extra::rapidjson
131
+ SYSTEM_INCLUDE_DIRECTORIES
132
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
131
133
132
134
SET_PROPERTY (SOURCE plugin/ha_ndbcluster.cc
133
135
PROPERTY COMPILE_DEFINITIONS
Original file line number Diff line number Diff line change @@ -378,7 +378,9 @@ telemetry_pfs_metrics.cc
378
378
)
379
379
MYSQL_ADD_PLUGIN(perfschema ${PERFSCHEMA_SOURCES}
380
380
STORAGE_ENGINE MANDATORY STATIC_ONLY
381
- LINK_LIBRARIES extra::rapidjson ext ::zlib mysql_gtid)
381
+ LINK_LIBRARIES extra::rapidjson ext ::zlib mysql_gtid
382
+ SYSTEM_INCLUDE_DIRECTORIES
383
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
382
384
383
385
IF (WITH_UNIT_TESTS)
384
386
ADD_SUBDIRECTORY (unittest)
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ ADD_STATIC_LIBRARY(gunit_large
84
84
thread_utils.cc
85
85
LINK_LIBRARIES ext ::icu ext ::zlib
86
86
)
87
+ TARGET_INCLUDE_DIRECTORIES (gunit_large SYSTEM PRIVATE
88
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
87
89
88
90
# Add a library for enable_win_jemalloc.cc
89
91
# and link it with both gunit_small and gunit_large below.
@@ -368,6 +370,10 @@ IF(MY_COMPILER_IS_GNU)
368
370
MY_TARGET_LINK_OPTIONS(merge_large_tests-t "-Wno-alloc-size-larger-than" )
369
371
ENDIF ()
370
372
373
+ TARGET_INCLUDE_DIRECTORIES (merge_large_tests-t SYSTEM PRIVATE
374
+ ${CMAKE_SOURCE_DIR} /extra/unordered_dense/unordered_dense-4.4.0/include )
375
+
376
+
371
377
FOREACH (test ${TESTS} )
372
378
MYSQL_ADD_EXECUTABLE(${test} -t ${test} -t.cc
373
379
COMPILE_DEFINITIONS ${DISABLE_PSI_DEFINITIONS}
You can’t perform that action at this time.
0 commit comments