Fix clang
This commit is contained in:
parent
e1c1e568f9
commit
80b695e28f
@ -15,7 +15,7 @@ HOST_CMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -lc++ -lc++abi"
|
|||||||
|
|
||||||
# Build tdlib tools
|
# Build tdlib tools
|
||||||
cd implementations/tdlight/td_tools_build
|
cd implementations/tdlight/td_tools_build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
@ -47,7 +47,7 @@ export CMAKE_CXX_FLAGS_MINSIZEREL="${CMAKE_CXX_FLAGS_MINSIZEREL} -flto=thin -Oz"
|
|||||||
cd implementations/tdlight/build
|
cd implementations/tdlight/build
|
||||||
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
||||||
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
@ -65,7 +65,7 @@ cmake --build . --target install --config Release "-j$(nproc)"
|
|||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
|
@ -15,7 +15,7 @@ HOST_CMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -lc++ -lc++abi"
|
|||||||
|
|
||||||
# Build tdlib tools
|
# Build tdlib tools
|
||||||
cd implementations/tdlight/td_tools_build
|
cd implementations/tdlight/td_tools_build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
@ -47,7 +47,7 @@ export CMAKE_CXX_FLAGS_MINSIZEREL="${CMAKE_CXX_FLAGS_MINSIZEREL} -flto=thin -Oz"
|
|||||||
cd implementations/tdlight/build
|
cd implementations/tdlight/build
|
||||||
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
||||||
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
@ -65,7 +65,7 @@ cmake --build . --target install --config Release "-j$(nproc)"
|
|||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
|
@ -16,7 +16,7 @@ HOST_CMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -lc++ -lc++abi"
|
|||||||
|
|
||||||
# Build tdlib tools
|
# Build tdlib tools
|
||||||
cd implementations/tdlight/td_tools_build
|
cd implementations/tdlight/td_tools_build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
-DCMAKE_C_COMPILER="${HOST_CMAKE_C_COMPILER}" \
|
||||||
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
-DCMAKE_CXX_COMPILER="${HOST_CMAKE_CXX_COMPILER}" \
|
||||||
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} ${HOST_CMAKE_C_FLAGS}" \
|
||||||
@ -47,7 +47,7 @@ export CMAKE_CXX_FLAGS_MINSIZEREL="${CMAKE_CXX_FLAGS_MINSIZEREL} -flto=thin -Oz"
|
|||||||
cd implementations/tdlight/build
|
cd implementations/tdlight/build
|
||||||
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
INSTALL_PREFIX="$(readlink -e ./td_bin/)"
|
||||||
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
INSTALL_BINDIR="$(readlink -e ./td_bin/bin)"
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=ON -DTD_SKIP_TG_CLI=ON \
|
-DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=ON -DTD_SKIP_TG_CLI=ON \
|
||||||
-DTD_ENABLE_LTO=ON \
|
-DTD_ENABLE_LTO=ON \
|
||||||
@ -60,7 +60,7 @@ cmake --build . --target install --config Release "-j$(nproc)"
|
|||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
cmake \
|
CXXFLAGS="-stdlib=libc++" cmake \
|
||||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DTD_GENERATED_BINARIES_DIR=../../implementations/tdlight/build/td/generate \
|
-DTD_GENERATED_BINARIES_DIR=../../implementations/tdlight/build/td/generate \
|
||||||
-DTD_SRC_DIR=../../implementations/tdlight \
|
-DTD_SRC_DIR=../../implementations/tdlight \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user