2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

clang: Fix libexec directory location

This commit is contained in:
Dylan Araps 2020-05-08 11:57:33 +03:00
parent 998cfc4f9b
commit ba563711f5
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -15,3 +15,14 @@ cmake -B build \
cmake --build build
cmake --install build
# Fix up libexec location. This can't be done during
# the configure stage of the build as it is hardcoded.
{
mv -f "$1/usr/libexec/ccc-analyzer" "$1/usr/lib/clang"
mv -f "$1/usr/libexec/c++-analyzer" "$1/usr/lib/clang"
rmdir "$1/usr/libexec"
sed -i 's|libexec|lib/clang|' "$1/usr/bin/scan-build"
}