]> xenbits.xensource.com Git - unikraft/libs/libunwind.git/commitdiff
Select lib-compiler-rt as Kconfig dependency
authorAndrei Tatar <andrei@unikraft.io>
Mon, 28 Aug 2023 23:18:26 +0000 (01:18 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 8 Sep 2023 21:17:24 +0000 (21:17 +0000)
Commit 70bac65 (Split off functionality that depends on libunwind)
in lib-compiler-rt removed the circular dependency between it and
libunwind.
This change thus removes the workaround check for lib-compiler-rt and
more cleanly expresses it through Kconfig `select`.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #10

Config.uk
Makefile.uk

index 90a18f8bc67a3529eed38a04bdf7e29cf3c55199..3b3610a3dae01182e09480c8775042219ca36b8e 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -2,4 +2,5 @@ menuconfig LIBUNWIND
     bool "libunwind - unwinder"
        select LIBNOLIBC if !HAVE_LIBC
        select LIBCXXABI
+       select LIBCOMPILER_RT
     default n
index cdc722319d98cee1b413f32b728f1aa9213fe9a6..2594192c78e79d4bc251ce92e8357353802adfa5 100644 (file)
 ################################################################################
 $(eval $(call addlib_s,libunwind,$(CONFIG_LIBUNWIND)))
 
-ifeq ($(CONFIG_LIBUNWIND),y)
-ifneq ($(CONFIG_LIBCOMPILER_RT),y)
-$(error Require libcompiler_rt)
-endif
-endif
-
 ################################################################################
 # Sources
 ################################################################################