ccls: fix cross build

This commit is contained in:
Đoàn Trần Công Danh 2020-12-28 06:33:20 +07:00
parent 53d6ae4234
commit 12694050dd
1 changed files with 2 additions and 8 deletions

View File

@ -4,21 +4,15 @@ version=0.20201219
revision=1
build_style=cmake
hostmakedepends="clang-tools-extra"
makedepends="clang llvm ncurses-devel rapidjson zlib-devel"
makedepends="llvm ncurses-devel rapidjson zlib-devel clang-tools-extra"
short_desc="C/C++/ObjC language server"
maintainer="Nathan Owens <ndowens@artixlinux.org>"
license="Apache-2.0"
homepage="https://github.com/MaskRay/ccls"
distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz"
checksum=edd3435bc7e55d9e5dc931932f9c98275a6a28d1ab1f66416110e029f3f2882a
nocross="Clang cannot be installed as makedep"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
post_extract() {
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt
fi
}