Some versions of clang-19 report:
error: invalid feature combination: +avx10.1-256; will be promoted to
avx10.1-512 [-Werror,-Winvalid-feature-combination]
;;
hardenedmalloc)
INSTALL_HARDENED_MALLOC=yes
- # Need clang >= 19 for constexpr.
- PACKAGES="$PACKAGES clang-19"
+ # Need clang >= 19 for constexpr and >= 20 for avx10.1-512
+ PACKAGES="$PACKAGES clang-20"
;;
musl)
PACKAGES="$PACKAGES musl-tools"
(cd ${HOME} &&
git clone https://github.com/GrapheneOS/hardened_malloc.git &&
cd ${HOME}/hardened_malloc &&
- make CC=clang-19 && sudo cp out/libhardened_malloc.so /usr/lib/)
+ clang-20 --version &&
+ make CC=clang-20 && sudo cp out/libhardened_malloc.so /usr/lib/)
fi
if [ ! -z "${INSTALL_OPENSSL}" ]; then