From: Vlad-Andrei BĂDOIU (78692) Date: Tue, 14 Jan 2020 16:02:58 +0000 (+0000) Subject: Add ARM64 support X-Git-Tag: RELEASE-0.4~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b072dd8e99a6085abcef2a444c90098bb6c1978;p=unikraft%2Flibs%2Flibcxx.git Add ARM64 support In order to compile under ARM64 we remove the definitions of __x86_64__ and __FLT16_MANT_DIG__. Signed-off-by: Vlad-Andrei Badoiu Reviewed-by: Felipe Huici --- diff --git a/Makefile.uk b/Makefile.uk index f4543a2..6f5f37c 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -91,11 +91,9 @@ CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/utils ################################################################################ # Global flags ################################################################################ -CONFIG_FLAGS += -D LIBCXX_BUILDING_LIBCXXABI \ - -D __x86_64__ -D _LIBCPP_STD_VER=15 \ +CONFIG_FLAGS += -D LIBCXX_BUILDING_LIBCXXABI -D _LIBCPP_STD_VER=15 \ -D _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE -D __DYNAMIC_REENT__ \ - ifdef CONFIG_CXX_THREADS CONFIG_FLAGS += -D__linux__ -D_LIBCPP_HAS_THREAD_API_PTHREAD else diff --git a/include/__config_unikraft b/include/__config_unikraft index d67a232..930e3d8 100644 --- a/include/__config_unikraft +++ b/include/__config_unikraft @@ -14,3 +14,6 @@ #define _LIBCPP_BUILDING_LIBRARY #endif +#if defined( __arm__) || defined(__ARM_64__) +#undef __FLT16_MANT_DIG__ +#endif