mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
46fb94a3e4
* Fix std::numeric_limits<__uint128_t> * clean * Better fix of std::numeric_limits<__uint128_t> * Use clang 5.0 (release) as internal compiler * message * Fix werror * fix * fix * fixing.. * note * fix * fix * fix * fix * multi version * fix * fix
48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
# sudo apt install time
|
|
# Small .h isolated compile checker
|
|
# Finds missing #include <...>
|
|
# prints compile time, number of includes, use with sort: ./check_include.sh 2>&1 | sort -rk3
|
|
pwd=`pwd`
|
|
inc="-I. \
|
|
-I./contrib/libdivide \
|
|
-I./contrib/libre2 \
|
|
-I./build/contrib/libre2 \
|
|
-I./contrib/libfarmhash \
|
|
-I./contrib/libmetrohash/src \
|
|
-I./contrib/libdouble-conversion \
|
|
-I./contrib/libcityhash/include \
|
|
-I./contrib/zookeeper/src/c/include \
|
|
-I./contrib/zookeeper/src/c/generated \
|
|
-I./contrib/libtcmalloc/include \
|
|
-I./build/contrib/zlib-ng \
|
|
-I./contrib/zlib-ng \
|
|
-I./contrib/poco/MongoDB/include \
|
|
-I./contrib/poco/XML/include \
|
|
-I./contrib/poco/Crypto/include \
|
|
-I./contrib/poco/Data/ODBC/include \
|
|
-I./contrib/poco/Data/include \
|
|
-I./contrib/poco/Net/include \
|
|
-I./contrib/poco/Util/include \
|
|
-I./contrib/poco/Foundation/include \
|
|
-I./contrib/libboost/boost_1_62_0 \
|
|
-I./contrib/libbtrie/include \
|
|
-I./contrib/libpcg-random/include \
|
|
-I./libs/libmysqlxx/include \
|
|
-I./libs/libcommon/include \
|
|
-I./build/libs/libcommon/include \
|
|
-I./libs/libpocoext/include \
|
|
-I./libs/libzkutil/include \
|
|
-I./libs/libdaemon/include \
|
|
-I./dbms/src \
|
|
-I./build/dbms/src"
|
|
|
|
if [ -z $1 ]; then
|
|
cd ..
|
|
find dbms libs utils \( -name *.h -and -not -name *.inl.h \) -exec sh $pwd/$0 {} \; ;
|
|
else
|
|
echo -n "$1 "
|
|
echo -n `grep "#include" $1| wc -l` " "
|
|
echo -e "#include <$1> \n int main() {return 0;}" | time --format "%e %M" g++-7 -c -std=c++1z $inc -x c++ -
|
|
fi
|