Skip to content

Commit f172b04

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 f172b04

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

patches/0002-Remove-ABI-TAG.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
diff --git a/include/__support/musl/xlocale.h b/include/__support/musl/xlocale.h
2+
index f564c87..97b4876 100644
3+
--- a/include/__support/musl/xlocale.h
4+
+++ b/include/__support/musl/xlocale.h
5+
@@ -24,27 +24,27 @@
6+
extern "C" {
7+
#endif
8+
9+
-inline _LIBCPP_HIDE_FROM_ABI long long
10+
+inline long long
11+
strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t) {
12+
return ::strtoll(__nptr, __endptr, __base);
13+
}
14+
15+
-inline _LIBCPP_HIDE_FROM_ABI unsigned long long
16+
+inline unsigned long long
17+
strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t) {
18+
return ::strtoull(__nptr, __endptr, __base);
19+
}
20+
21+
-inline _LIBCPP_HIDE_FROM_ABI long long
22+
+inline long long
23+
wcstoll_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
24+
return ::wcstoll(__nptr, __endptr, __base);
25+
}
26+
27+
-inline _LIBCPP_HIDE_FROM_ABI long long
28+
+inline long long
29+
wcstoull_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
30+
return ::wcstoull(__nptr, __endptr, __base);
31+
}
32+
33+
-inline _LIBCPP_HIDE_FROM_ABI long double
34+
+inline long double
35+
wcstold_l(const wchar_t *__nptr, wchar_t **__endptr, locale_t) {
36+
return ::wcstold(__nptr, __endptr);
37+
}

0 commit comments

Comments
 (0)