Skip to content

Commit bb9a7a5

Browse files
committedJan 31, 2025·
Cleanup libcxxrt import
commit_hash:a45aa7528cf49e9f590ceddf8b5dd43f8856e327
1 parent a8e68bb commit bb9a7a5

File tree

6 files changed

+16
-32
lines changed

6 files changed

+16
-32
lines changed
 

‎contrib/libs/cxxsupp/libcxxrt/cxxabi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace std
4141

4242
#ifdef __cplusplus
4343
#if __cplusplus < 201103L
44-
#define _LIBCXXRT_NOEXCEPT noexcept
44+
#define _LIBCXXRT_NOEXCEPT throw()
4545
#else
4646
#define _LIBCXXRT_NOEXCEPT noexcept
4747
#endif

‎contrib/libs/cxxsupp/libcxxrt/exception.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "dwarf_eh.h"
3636
#include "atomic.h"
3737
#include "cxxabi.h"
38-
#include "msan.h"
38+
#include <sanitizer/msan_interface.h>
3939

4040
using namespace ABI_NAMESPACE;
4141

‎contrib/libs/cxxsupp/libcxxrt/msan.h

-12
This file was deleted.

‎contrib/libs/cxxsupp/libcxxrt/stdexcept.cc

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
namespace std {
3333

3434
exception::exception() _LIBCXXRT_NOEXCEPT {}
35-
exception::~exception() _LIBCXXRT_NOEXCEPT {}
35+
exception::~exception() {}
3636
exception::exception(const exception&) _LIBCXXRT_NOEXCEPT {}
3737
exception& exception::operator=(const exception&) _LIBCXXRT_NOEXCEPT
3838
{
@@ -44,7 +44,7 @@ const char* exception::what() const _LIBCXXRT_NOEXCEPT
4444
}
4545

4646
bad_alloc::bad_alloc() _LIBCXXRT_NOEXCEPT {}
47-
bad_alloc::~bad_alloc() _LIBCXXRT_NOEXCEPT {}
47+
bad_alloc::~bad_alloc() {}
4848
bad_alloc::bad_alloc(const bad_alloc&) _LIBCXXRT_NOEXCEPT {}
4949
bad_alloc& bad_alloc::operator=(const bad_alloc&) _LIBCXXRT_NOEXCEPT
5050
{
@@ -58,7 +58,7 @@ const char* bad_alloc::what() const _LIBCXXRT_NOEXCEPT
5858

5959

6060
bad_cast::bad_cast() _LIBCXXRT_NOEXCEPT {}
61-
bad_cast::~bad_cast() _LIBCXXRT_NOEXCEPT {}
61+
bad_cast::~bad_cast() {}
6262
bad_cast::bad_cast(const bad_cast&) _LIBCXXRT_NOEXCEPT {}
6363
bad_cast& bad_cast::operator=(const bad_cast&) _LIBCXXRT_NOEXCEPT
6464
{
@@ -70,7 +70,7 @@ const char* bad_cast::what() const _LIBCXXRT_NOEXCEPT
7070
}
7171

7272
bad_typeid::bad_typeid() _LIBCXXRT_NOEXCEPT {}
73-
bad_typeid::~bad_typeid() _LIBCXXRT_NOEXCEPT {}
73+
bad_typeid::~bad_typeid() {}
7474
bad_typeid::bad_typeid(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT {}
7575
bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT
7676
{
@@ -96,3 +96,4 @@ const char* bad_array_new_length::what() const _LIBCXXRT_NOEXCEPT
9696
}
9797

9898
} // namespace std
99+

‎contrib/libs/cxxsupp/libcxxrt/stdexcept.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace std
4040
exception() _LIBCXXRT_NOEXCEPT;
4141
exception(const exception&) _LIBCXXRT_NOEXCEPT;
4242
exception& operator=(const exception&) _LIBCXXRT_NOEXCEPT;
43-
virtual ~exception() _LIBCXXRT_NOEXCEPT;
43+
virtual ~exception();
4444
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
4545
};
4646

@@ -54,7 +54,7 @@ namespace std
5454
bad_alloc() _LIBCXXRT_NOEXCEPT;
5555
bad_alloc(const bad_alloc&) _LIBCXXRT_NOEXCEPT;
5656
bad_alloc& operator=(const bad_alloc&) _LIBCXXRT_NOEXCEPT;
57-
~bad_alloc() _LIBCXXRT_NOEXCEPT;
57+
~bad_alloc();
5858
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
5959
};
6060

@@ -66,7 +66,7 @@ namespace std
6666
bad_cast() _LIBCXXRT_NOEXCEPT;
6767
bad_cast(const bad_cast&) _LIBCXXRT_NOEXCEPT;
6868
bad_cast& operator=(const bad_cast&) _LIBCXXRT_NOEXCEPT;
69-
virtual ~bad_cast() _LIBCXXRT_NOEXCEPT;
69+
virtual ~bad_cast();
7070
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
7171
};
7272

@@ -78,7 +78,7 @@ namespace std
7878
public:
7979
bad_typeid() _LIBCXXRT_NOEXCEPT;
8080
bad_typeid(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT;
81-
virtual ~bad_typeid() _LIBCXXRT_NOEXCEPT;
81+
virtual ~bad_typeid();
8282
bad_typeid& operator=(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT;
8383
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
8484
};

‎contrib/libs/cxxsupp/libcxxrt/ya.make

+5-10
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,18 @@ VERSION(2024-10-14)
1515

1616
ORIGINAL_SOURCE(https://github.com/libcxxrt/libcxxrt/archive/76435c4451aeb5e04e9500b090293347a38cef8d.tar.gz)
1717

18-
ADDINCL(
19-
contrib/libs/cxxsupp/libcxxrt
18+
PEERDIR(
19+
contrib/libs/libunwind
20+
library/cpp/sanitizer/include
2021
)
2122

2223
NO_COMPILER_WARNINGS()
2324

2425
NO_RUNTIME()
2526

26-
CXXFLAGS(-nostdinc++)
27+
NO_UTIL()
2728

28-
IF (CXX_UNWIND == "glibcxx_dynamic" OR ARCH_PPC64LE)
29-
LDFLAGS(-lgcc_s)
30-
ELSE()
31-
PEERDIR(
32-
contrib/libs/libunwind
33-
)
34-
ENDIF()
29+
CXXFLAGS(-nostdinc++)
3530

3631
IF (SANITIZER_TYPE == undefined OR FUZZING)
3732
NO_SANITIZE()

0 commit comments

Comments
 (0)
Please sign in to comment.