Always use clang
This commit is contained in:
parent
11c80336d7
commit
dda779bfac
@ -4,12 +4,9 @@ set -e
|
||||
if [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then
|
||||
echo "==Linux===="
|
||||
sudo apt install -y make git zlib1g-dev libssl-dev gperf cmake \
|
||||
ccache maven python3 python3-pip php7.4-cli
|
||||
if { [[ "$IMPLEMENTATION_NAME" == "tdlib" ]]; } && { [[ "$CPU_ARCHITECTURE_NAME" == "386" ]] || [[ "$CPU_ARCHITECTURE_NAME" == "armv6" ]] || [[ "$CPU_ARCHITECTURE_NAME" == "armv7" ]]; }; then
|
||||
sudo apt install -y build-essential
|
||||
else
|
||||
sudo apt install -y clang-11 libc++-11-dev libc++abi-11-dev
|
||||
fi
|
||||
ccache maven python3 python3-pip php7.4-cli \
|
||||
clang-11 libc++-11-dev libc++abi-11-dev
|
||||
|
||||
elif [[ "$OPERATING_SYSTEM_NAME" == "osx" ]]; then
|
||||
echo "==OSX======"
|
||||
export PYTHON=36
|
||||
|
@ -92,13 +92,9 @@ elif [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then
|
||||
export CXXFLAGS="$CXXFLAGS -latomic"
|
||||
fi
|
||||
|
||||
if { [[ "$IMPLEMENTATION_NAME" == "tdlib" ]]; } && { [[ "$CPU_ARCHITECTURE_NAME" == "386" ]] || [[ "$CPU_ARCHITECTURE_NAME" == "armv6" ]] || [[ "$CPU_ARCHITECTURE_NAME" == "armv7" ]]; }; then
|
||||
export CXXFLAGS="$CXXFLAGS"
|
||||
else
|
||||
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++"
|
||||
export CC="/usr/bin/clang-11"
|
||||
export CXX="/usr/bin/clang++-11"
|
||||
fi
|
||||
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++"
|
||||
export CC="/usr/bin/clang-11"
|
||||
export CXX="/usr/bin/clang++-11"
|
||||
|
||||
export CPU_CORES=" -- -j${CPU_CORES_NUM}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user