Skip to content

Commit ccd8b56

Browse files
committed
patches: Add patch to remove abi-tag
ABI_TAG was introduced in upstream: llvm/llvm-project@67b0b02 These ABI_TAG leads to error: build/libcxx/origin/libcxx-15.0.0.src/include/__support/musl/xlocale.h:38:74: error: ‘abi_tag’ attribute applied to extern "C" declaration ‘long long int wcstoll_’ 38 | wcstoll_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) { Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com>
1 parent a5178e9 commit ccd8b56

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

patches/0001-Remove-ABI-tag.patch

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
From 316e4eee534e9474e34f928d5451032556377853 Mon Sep 17 00:00:00 2001
2+
From: Mamta Shukla <mamtashukla555@gmail.com>
3+
Date: Sun, 6 Aug 2023 22:49:45 +0200
4+
Subject: [PATCH] Remove ABI tag
5+
6+
Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com>
7+
---
8+
include/__support/musl/xlocale.h | 10 +++++-----
9+
1 file changed, 5 insertions(+), 5 deletions(-)
10+
11+
diff --git a/include/__support/musl/xlocale.h b/include/__support/musl/xlocale.h
12+
index f564c87..97b4876 100644
13+
--- a/include/__support/musl/xlocale.h
14+
+++ b/include/__support/musl/xlocale.h
15+
@@ -24,27 +24,27 @@
16+
extern "C" {
17+
#endif
18+
19+
-inline _LIBCPP_HIDE_FROM_ABI long long
20+
+inline long long
21+
strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t) {
22+
return ::strtoll(__nptr, __endptr, __base);
23+
}
24+
25+
-inline _LIBCPP_HIDE_FROM_ABI unsigned long long
26+
+inline unsigned long long
27+
strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t) {
28+
return ::strtoull(__nptr, __endptr, __base);
29+
}
30+
31+
-inline _LIBCPP_HIDE_FROM_ABI long long
32+
+inline long long
33+
wcstoll_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
34+
return ::wcstoll(__nptr, __endptr, __base);
35+
}
36+
37+
-inline _LIBCPP_HIDE_FROM_ABI long long
38+
+inline long long
39+
wcstoull_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
40+
return ::wcstoull(__nptr, __endptr, __base);
41+
}
42+
43+
-inline _LIBCPP_HIDE_FROM_ABI long double
44+
+inline long double
45+
wcstold_l(const wchar_t *__nptr, wchar_t **__endptr, locale_t) {
46+
return ::wcstold(__nptr, __endptr);
47+
}
48+
--
49+
2.25.1
50+

0 commit comments

Comments
 (0)