]> xenbits.xensource.com Git - unikraft/libs/libcxx.git/commitdiff
Makefile.uk: Add minimum compiler version check RELEASE-0.14.0
authorAndrei Tatar <andrei@unikraft.io>
Mon, 14 Aug 2023 14:44:20 +0000 (16:44 +0200)
committerUnikraft <monkey@unikraft.io>
Tue, 15 Aug 2023 18:19:10 +0000 (18:19 +0000)
libcxx 14 relies on some C++ features that are only implemented starting
from GCC 11 and Clang 10.
This change adds an explicit compiler version check to warn the user
about this incompatibility.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #33

Makefile.uk

index 7288e6e1a3d29aa004babab93997dbb58de7e34c..9939c6cf612b54ccebe986a6ff12ecf84242dc65 100644 (file)
 ################################################################################
 $(eval $(call addlib_s,libcxx,$(CONFIG_LIBCXX)))
 
+ifeq ($(CONFIG_LIBCXX),y)
+ifeq ($(call have_gcc),y)
+$(call error_if_gcc_version_lt,11,0)
+else ifeq ($(call have_clang),y)
+$(call error_if_clang_version_lt,10,0)
+endif
+endif
+
 ################################################################################
 # Sources
 ################################################################################