# The tarball is the whole llvm-project: LLVM's own tree is llvm/.
configure() {
	configure_args cmake -S llvm -B _build -G Ninja -DCMAKE_INSTALL_PREFIX="$PREFIX" \
		-DCMAKE_BUILD_TYPE=Release
}
# Stripped, and without the static libraries (everything links libLLVM.so;
# they are 10x the size of the rest).
package() {
	DESTDIR="$DESTDIR" cmake --install _build --strip
	rm -f "$DESTDIR$PREFIX"/lib/*.a
}
