Skip to content

Commit

Permalink
Cleanup libcxxrt import
Browse files Browse the repository at this point in the history
commit_hash:a45aa7528cf49e9f590ceddf8b5dd43f8856e327
  • Loading branch information
georgthegreat committed Jan 31, 2025
1 parent a8e68bb commit bb9a7a5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 32 deletions.
2 changes: 1 addition & 1 deletion contrib/libs/cxxsupp/libcxxrt/cxxabi.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace std

#ifdef __cplusplus
#if __cplusplus < 201103L
#define _LIBCXXRT_NOEXCEPT noexcept
#define _LIBCXXRT_NOEXCEPT throw()
#else
#define _LIBCXXRT_NOEXCEPT noexcept
#endif
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/cxxsupp/libcxxrt/exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "dwarf_eh.h"
#include "atomic.h"
#include "cxxabi.h"
#include "msan.h"
#include <sanitizer/msan_interface.h>

using namespace ABI_NAMESPACE;

Expand Down
12 changes: 0 additions & 12 deletions contrib/libs/cxxsupp/libcxxrt/msan.h

This file was deleted.

9 changes: 5 additions & 4 deletions contrib/libs/cxxsupp/libcxxrt/stdexcept.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
namespace std {

exception::exception() _LIBCXXRT_NOEXCEPT {}
exception::~exception() _LIBCXXRT_NOEXCEPT {}
exception::~exception() {}
exception::exception(const exception&) _LIBCXXRT_NOEXCEPT {}
exception& exception::operator=(const exception&) _LIBCXXRT_NOEXCEPT
{
Expand All @@ -44,7 +44,7 @@ const char* exception::what() const _LIBCXXRT_NOEXCEPT
}

bad_alloc::bad_alloc() _LIBCXXRT_NOEXCEPT {}
bad_alloc::~bad_alloc() _LIBCXXRT_NOEXCEPT {}
bad_alloc::~bad_alloc() {}
bad_alloc::bad_alloc(const bad_alloc&) _LIBCXXRT_NOEXCEPT {}
bad_alloc& bad_alloc::operator=(const bad_alloc&) _LIBCXXRT_NOEXCEPT
{
Expand All @@ -58,7 +58,7 @@ const char* bad_alloc::what() const _LIBCXXRT_NOEXCEPT


bad_cast::bad_cast() _LIBCXXRT_NOEXCEPT {}
bad_cast::~bad_cast() _LIBCXXRT_NOEXCEPT {}
bad_cast::~bad_cast() {}
bad_cast::bad_cast(const bad_cast&) _LIBCXXRT_NOEXCEPT {}
bad_cast& bad_cast::operator=(const bad_cast&) _LIBCXXRT_NOEXCEPT
{
Expand All @@ -70,7 +70,7 @@ const char* bad_cast::what() const _LIBCXXRT_NOEXCEPT
}

bad_typeid::bad_typeid() _LIBCXXRT_NOEXCEPT {}
bad_typeid::~bad_typeid() _LIBCXXRT_NOEXCEPT {}
bad_typeid::~bad_typeid() {}
bad_typeid::bad_typeid(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT {}
bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT
{
Expand All @@ -96,3 +96,4 @@ const char* bad_array_new_length::what() const _LIBCXXRT_NOEXCEPT
}

} // namespace std

8 changes: 4 additions & 4 deletions contrib/libs/cxxsupp/libcxxrt/stdexcept.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace std
exception() _LIBCXXRT_NOEXCEPT;
exception(const exception&) _LIBCXXRT_NOEXCEPT;
exception& operator=(const exception&) _LIBCXXRT_NOEXCEPT;
virtual ~exception() _LIBCXXRT_NOEXCEPT;
virtual ~exception();
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
};

Expand All @@ -54,7 +54,7 @@ namespace std
bad_alloc() _LIBCXXRT_NOEXCEPT;
bad_alloc(const bad_alloc&) _LIBCXXRT_NOEXCEPT;
bad_alloc& operator=(const bad_alloc&) _LIBCXXRT_NOEXCEPT;
~bad_alloc() _LIBCXXRT_NOEXCEPT;
~bad_alloc();
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
};

Expand All @@ -66,7 +66,7 @@ namespace std
bad_cast() _LIBCXXRT_NOEXCEPT;
bad_cast(const bad_cast&) _LIBCXXRT_NOEXCEPT;
bad_cast& operator=(const bad_cast&) _LIBCXXRT_NOEXCEPT;
virtual ~bad_cast() _LIBCXXRT_NOEXCEPT;
virtual ~bad_cast();
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
};

Expand All @@ -78,7 +78,7 @@ namespace std
public:
bad_typeid() _LIBCXXRT_NOEXCEPT;
bad_typeid(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT;
virtual ~bad_typeid() _LIBCXXRT_NOEXCEPT;
virtual ~bad_typeid();
bad_typeid& operator=(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT;
virtual const char* what() const _LIBCXXRT_NOEXCEPT;
};
Expand Down
15 changes: 5 additions & 10 deletions contrib/libs/cxxsupp/libcxxrt/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,18 @@ VERSION(2024-10-14)

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

ADDINCL(
contrib/libs/cxxsupp/libcxxrt
PEERDIR(
contrib/libs/libunwind
library/cpp/sanitizer/include
)

NO_COMPILER_WARNINGS()

NO_RUNTIME()

CXXFLAGS(-nostdinc++)
NO_UTIL()

IF (CXX_UNWIND == "glibcxx_dynamic" OR ARCH_PPC64LE)
LDFLAGS(-lgcc_s)
ELSE()
PEERDIR(
contrib/libs/libunwind
)
ENDIF()
CXXFLAGS(-nostdinc++)

IF (SANITIZER_TYPE == undefined OR FUZZING)
NO_SANITIZE()
Expand Down

0 comments on commit bb9a7a5

Please sign in to comment.