mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-21 16:47:00 +02:00
ccls: use generic libatomic checks
This commit is contained in:
parent
48c55e7109
commit
ae0160a041
1 changed files with 6 additions and 10 deletions
|
@ -13,16 +13,12 @@ distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz"
|
|||
checksum=6f39fa5ce79c1682973811ce2409718710bfef6008f94f96277393e6846bd76c
|
||||
nocross="Clang cannot be installed as makedep"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*) ;;
|
||||
armv6*|ppc*) makedepends+=" libatomic-devel";;
|
||||
esac
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*) ;;
|
||||
armv6*|ppc*)
|
||||
echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt
|
||||
;;
|
||||
esac
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue