diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index ed394df3728..b905dbc1ba7 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -151,7 +151,7 @@ endif () if (USE_INTERNAL_LLVM_LIBRARY) # ld: unknown option: --color-diagnostics - if (APPLE AND COMPILER_GCC) + if (APPLE) set (LINKER_SUPPORTS_COLOR_DIAGNOSTICS 0 CACHE INTERNAL "") endif () add_subdirectory (llvm/llvm) diff --git a/dbms/CMakeLists.txt b/dbms/CMakeLists.txt index 8dba0991944..573b0e4ea0f 100644 --- a/dbms/CMakeLists.txt +++ b/dbms/CMakeLists.txt @@ -157,6 +157,7 @@ target_link_libraries (dbms ${RE2_LIBRARY} ${RE2_ST_LIBRARY} ${BTRIE_LIBRARIES} + ${Boost_PROGRAM_OPTIONS_LIBRARY} ) if (NOT USE_INTERNAL_RE2_LIBRARY) diff --git a/dbms/src/Common/ZooKeeper/LeaderElection.h b/dbms/src/Common/ZooKeeper/LeaderElection.h index 12adba37bff..4447c2ccfd2 100644 --- a/dbms/src/Common/ZooKeeper/LeaderElection.h +++ b/dbms/src/Common/ZooKeeper/LeaderElection.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace ProfileEvents diff --git a/dbms/src/Common/BackgroundSchedulePool.cpp b/dbms/src/Core/BackgroundSchedulePool.cpp similarity index 99% rename from dbms/src/Common/BackgroundSchedulePool.cpp rename to dbms/src/Core/BackgroundSchedulePool.cpp index d4b3714df51..9cdec4087a4 100644 --- a/dbms/src/Common/BackgroundSchedulePool.cpp +++ b/dbms/src/Core/BackgroundSchedulePool.cpp @@ -1,4 +1,4 @@ -#include +#include "BackgroundSchedulePool.h" #include #include #include diff --git a/dbms/src/Common/BackgroundSchedulePool.h b/dbms/src/Core/BackgroundSchedulePool.h similarity index 100% rename from dbms/src/Common/BackgroundSchedulePool.h rename to dbms/src/Core/BackgroundSchedulePool.h diff --git a/dbms/src/Interpreters/Context.cpp b/dbms/src/Interpreters/Context.cpp index 1b45665e0e1..37ba4b3f8c8 100644 --- a/dbms/src/Interpreters/Context.cpp +++ b/dbms/src/Interpreters/Context.cpp @@ -1,21 +1,18 @@ #include #include - #include #include #include #include #include - #include #include - #include #include #include #include #include -#include +#include #include #include #include diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.h index c713f42ae29..3c64e6b5a5a 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h index 2223a42717d..a4563794b62 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h @@ -4,10 +4,9 @@ #include #include #include -#include +#include #include #include - #include diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h index 5691e98b214..432fb0f4bb6 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include namespace DB { diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h index dab8dbca7a2..aec7f6f2309 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h @@ -10,7 +10,7 @@ #include #include -#include +#include namespace DB diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h index b9eca428cde..1192ec45703 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include #include diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.h b/dbms/src/Storages/StorageReplicatedMergeTree.h index 2d146c8f5d2..ebe28524910 100644 --- a/dbms/src/Storages/StorageReplicatedMergeTree.h +++ b/dbms/src/Storages/StorageReplicatedMergeTree.h @@ -23,7 +23,7 @@ #include #include #include -#include +#include namespace DB