mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
Compiling - improve multithreaded build
In multithreaded build (at least confirmed with Windows ninja and msbuild), at the end of "sql" target compilation, only 2 processors are used, compiling either sql_yacc.cc or sql_yacc_ora.cc. Thus, link of dependent executables or libraries is delayed while build is underusing the CPU. Rearrange the source list to improve parallelism.
This commit is contained in:
@@ -76,6 +76,8 @@ IF(SSL_DEFINES)
|
||||
ENDIF()
|
||||
|
||||
SET (SQL_SOURCE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc
|
||||
../sql-common/client.c compat56.cc derror.cc des_key_file.cc
|
||||
discover.cc ../sql-common/errmsg.c
|
||||
field.cc field_conv.cc field_comp.cc
|
||||
@@ -156,8 +158,6 @@ SET (SQL_SOURCE
|
||||
opt_trace.cc
|
||||
table_cache.cc encryption.cc temporary_tables.cc
|
||||
proxy_protocol.cc backup.cc xa.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}
|
||||
|
Reference in New Issue
Block a user