Merge pull request #14556 from ClickHouse/fix-arcadia-2

Lower binary size in "Arcadia" build
This commit is contained in:
Ilya Yatsishin 2020-09-08 12:08:35 +03:00 committed by GitHub
commit 11a247d2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 100 additions and 0 deletions

View File

@ -32,6 +32,8 @@ PEERDIR(
contrib/restricted/cityhash-1.0.2 contrib/restricted/cityhash-1.0.2
) )
CFLAGS(-g0)
SRCS( SRCS(
argsToConfig.cpp argsToConfig.cpp
coverage.cpp coverage.cpp

View File

@ -31,6 +31,8 @@ PEERDIR(
contrib/restricted/cityhash-1.0.2 contrib/restricted/cityhash-1.0.2
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests/ | grep -v -F Replxx | grep -v -F Readline | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests/ | grep -v -F Replxx | grep -v -F Readline | sed 's/^\.\// /' | sort ?>
) )

View File

@ -6,6 +6,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
BaseDaemon.cpp BaseDaemon.cpp
GraphiteWriter.cpp GraphiteWriter.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
ExtendedLogChannel.cpp ExtendedLogChannel.cpp
Loggers.cpp Loggers.cpp

View File

@ -1,5 +1,7 @@
LIBRARY() LIBRARY()
CFLAGS(-g0)
SRCS( SRCS(
readpassphrase.c readpassphrase.c
) )

View File

@ -2,6 +2,8 @@ LIBRARY()
ADDINCL(GLOBAL clickhouse/base/widechar_width) ADDINCL(GLOBAL clickhouse/base/widechar_width)
CFLAGS(-g0)
SRCS( SRCS(
widechar_width.cpp widechar_width.cpp
) )

View File

@ -8,6 +8,8 @@ PEERDIR(
contrib/libs/poco/NetSSL_OpenSSL contrib/libs/poco/NetSSL_OpenSSL
) )
CFLAGS(-g0)
SRCS( SRCS(
clickhouse-server.cpp clickhouse-server.cpp

View File

@ -12,6 +12,8 @@ PEERDIR(
clickhouse/src clickhouse/src
) )
CFLAGS(-g0)
SRCS( SRCS(
main.cpp main.cpp

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
AccessControlManager.cpp AccessControlManager.cpp
AccessRights.cpp AccessRights.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
AggregateFunctionAggThrow.cpp AggregateFunctionAggThrow.cpp
AggregateFunctionArray.cpp AggregateFunctionArray.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F GroupBitmap | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -F GroupBitmap | sed 's/^\.\// /' | sort ?>
) )

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/libs/poco/NetSSL_OpenSSL contrib/libs/poco/NetSSL_OpenSSL
) )
CFLAGS(-g0)
SRCS( SRCS(
Connection.cpp Connection.cpp
ConnectionPoolWithFailover.cpp ConnectionPoolWithFailover.cpp

View File

@ -5,6 +5,8 @@ PEERDIR(
contrib/libs/poco/NetSSL_OpenSSL contrib/libs/poco/NetSSL_OpenSSL
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -13,6 +13,8 @@ PEERDIR(
contrib/libs/pdqsort contrib/libs/pdqsort
) )
CFLAGS(-g0)
SRCS( SRCS(
Collator.cpp Collator.cpp
ColumnAggregateFunction.cpp ColumnAggregateFunction.cpp

View File

@ -21,6 +21,8 @@ PEERDIR(
INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/yandex/ya.make.versions.inc) INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/yandex/ya.make.versions.inc)
CFLAGS(-g0)
SRCS( SRCS(
ActionLock.cpp ActionLock.cpp
AlignedBuffer.cpp AlignedBuffer.cpp

View File

@ -20,6 +20,8 @@ PEERDIR(
INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/yandex/ya.make.versions.inc) INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/yandex/ya.make.versions.inc)
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -12,6 +12,8 @@ PEERDIR(
contrib/libs/zstd contrib/libs/zstd
) )
CFLAGS(-g0)
SRCS( SRCS(
CachedCompressedReadBuffer.cpp CachedCompressedReadBuffer.cpp
CompressedReadBufferBase.cpp CompressedReadBufferBase.cpp

View File

@ -11,6 +11,8 @@ PEERDIR(
contrib/libs/zstd contrib/libs/zstd
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -7,6 +7,8 @@ PEERDIR(
contrib/restricted/boost/libs contrib/restricted/boost/libs
) )
CFLAGS(-g0)
SRCS( SRCS(
BackgroundSchedulePool.cpp BackgroundSchedulePool.cpp
BaseSettings.cpp BaseSettings.cpp

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/restricted/boost/libs contrib/restricted/boost/libs
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -8,6 +8,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
AddingDefaultBlockOutputStream.cpp AddingDefaultBlockOutputStream.cpp
AddingDefaultsBlockInputStream.cpp AddingDefaultsBlockInputStream.cpp

View File

@ -7,6 +7,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -6,6 +6,8 @@ PEERDIR(
clickhouse/src/Formats clickhouse/src/Formats
) )
CFLAGS(-g0)
SRCS( SRCS(
convertMySQLDataType.cpp convertMySQLDataType.cpp
DataTypeAggregateFunction.cpp DataTypeAggregateFunction.cpp

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Formats clickhouse/src/Formats
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
DatabaseAtomic.cpp DatabaseAtomic.cpp
DatabaseDictionary.cpp DatabaseDictionary.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -12,6 +12,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
CacheDictionary.cpp CacheDictionary.cpp
CacheDictionary_generate1.cpp CacheDictionary_generate1.cpp

View File

@ -11,6 +11,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F Trie | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -F Trie | sed 's/^\.\// /' | sort ?>
) )

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
DiskS3.cpp DiskS3.cpp
registerDiskS3.cpp registerDiskS3.cpp

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
createVolume.cpp createVolume.cpp
DiskCacheWrapper.cpp DiskCacheWrapper.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F S3 | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -F S3 | sed 's/^\.\// /' | sort ?>
) )

View File

@ -7,6 +7,8 @@ PEERDIR(
contrib/libs/protoc contrib/libs/protoc
) )
CFLAGS(-g0)
SRCS( SRCS(
FormatFactory.cpp FormatFactory.cpp
FormatSchemaInfo.cpp FormatSchemaInfo.cpp

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/libs/protoc contrib/libs/protoc
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -33,6 +33,8 @@ PEERDIR(
) )
# "Arcadia" build is slightly deficient. It lacks many libraries that we need. # "Arcadia" build is slightly deficient. It lacks many libraries that we need.
CFLAGS(-g0)
SRCS( SRCS(
abs.cpp abs.cpp
acos.cpp acos.cpp

View File

@ -32,6 +32,8 @@ PEERDIR(
) )
# "Arcadia" build is slightly deficient. It lacks many libraries that we need. # "Arcadia" build is slightly deficient. It lacks many libraries that we need.
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -i -v -P 'tests|Bitmap|sumbur|abtesting' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -i -v -P 'tests|Bitmap|sumbur|abtesting' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -8,6 +8,8 @@ PEERDIR(
contrib/libs/poco/NetSSL_OpenSSL contrib/libs/poco/NetSSL_OpenSSL
) )
CFLAGS(-g0)
SRCS( SRCS(
AIOContextPool.cpp AIOContextPool.cpp
AIO.cpp AIO.cpp

View File

@ -7,6 +7,8 @@ PEERDIR(
contrib/libs/poco/NetSSL_OpenSSL contrib/libs/poco/NetSSL_OpenSSL
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'S3|HDFS' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'S3|HDFS' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -14,6 +14,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
ActionLocksManager.cpp ActionLocksManager.cpp
ActionsVisitor.cpp ActionsVisitor.cpp

View File

@ -13,6 +13,8 @@ PEERDIR(
NO_COMPILER_WARNINGS() NO_COMPILER_WARNINGS()
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F JIT | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -F JIT | sed 's/^\.\// /' | sort ?>
) )

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
ASTAlterQuery.cpp ASTAlterQuery.cpp
ASTAsterisk.cpp ASTAsterisk.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | sed 's/^\.\// /' | sort ?>
) )

View File

@ -7,6 +7,8 @@ PEERDIR(
contrib/libs/protobuf contrib/libs/protobuf
) )
CFLAGS(-g0)
SRCS( SRCS(
Chunk.cpp Chunk.cpp
ConcatProcessor.cpp ConcatProcessor.cpp

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/libs/protobuf contrib/libs/protobuf
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'Arrow|Avro|ORC|Parquet|CapnProto' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'Arrow|Avro|ORC|Parquet|CapnProto' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/libs/poco/Util contrib/libs/poco/Util
) )
CFLAGS(-g0)
SRCS( SRCS(
HTTPHandler.cpp HTTPHandler.cpp
HTTPHandlerFactory.cpp HTTPHandlerFactory.cpp

View File

@ -5,6 +5,8 @@ PEERDIR(
contrib/libs/poco/Util contrib/libs/poco/Util
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -7,6 +7,8 @@ PEERDIR(
contrib/libs/poco/MongoDB contrib/libs/poco/MongoDB
) )
CFLAGS(-g0)
SRCS( SRCS(
AlterCommands.cpp AlterCommands.cpp
ColumnDefault.cpp ColumnDefault.cpp

View File

@ -6,6 +6,8 @@ PEERDIR(
contrib/libs/poco/MongoDB contrib/libs/poco/MongoDB
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'Kafka|RabbitMQ|S3|HDFS|Licenses|TimeZones' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -F tests | grep -v -P 'Kafka|RabbitMQ|S3|HDFS|Licenses|TimeZones' | sed 's/^\.\// /' | sort ?>
) )

View File

@ -5,6 +5,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
ITableFunction.cpp ITableFunction.cpp
ITableFunctionFileLike.cpp ITableFunctionFileLike.cpp

View File

@ -4,6 +4,8 @@ PEERDIR(
clickhouse/src/Common clickhouse/src/Common
) )
CFLAGS(-g0)
SRCS( SRCS(
<? find . -name '*.cpp' | grep -v -P 'S3|HDFS' | sed 's/^\.\// /' | sort ?> <? find . -name '*.cpp' | grep -v -P 'S3|HDFS' | sed 's/^\.\// /' | sort ?>
) )