Files
buildroot/package/blake3/blake3.mk
Yann E. MORIN 16a0560152 package/blake3: add target support
Blake3 unconditionally enables C++ support, which unconditionally
requires C++20 when built with cmake >= 3.12, even when this is not
required.

Fixing this does not look trivial, and rather than botching the build,
just require C++20, available from gcc 8.x onward.

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-02-07 22:33:55 +01:00

33 lines
945 B
Makefile

################################################################################
#
# blake3
#
################################################################################
BLAKE3_VERSION = 1.8.3
BLAKE3_SITE = $(call github,BLAKE3-team,BLAKE3,$(BLAKE3_VERSION))
BLAKE3_SUBDIR = c
BLAKE3_LICENSE = Apache-2.0 or Apache-2.0 with exceptions or CC0-1.0
BLAKE3_LICENSE_FILES = LICENSE_A2 LICENSE_A2LLVM LICENSE_CC0
BLAKE3_INSTALL_STAGING = YES
BLAKE3_CONF_OPTS = \
-DBLAKE3_USE_TBB=OFF \
-DBLAKE3_EXAMPLES=OFF
HOST_BLAKE3_CONF_OPTS = \
-DBLAKE3_USE_TBB=OFF \
-DBLAKE3_EXAMPLES=OFF
# The package is a dependency to ccache so ccache cannot be a dependency
HOST_BLAKE3_ADD_CCACHE_DEPENDENCY = NO
# We may be a ccache dependency, so we can't use ccache; reset the
# options set by the cmake infra.
HOST_BLAKE3_CONF_OPTS += \
-UCMAKE_C_COMPILER_LAUNCHER \
-UCMAKE_CXX_COMPILER_LAUNCHER
$(eval $(cmake-package))
$(eval $(host-cmake-package))