Update runtimeDefinitions after toolchain upgrade (#4714)

This commit is contained in:
Alexander Shabalin
2021-02-20 16:33:08 +03:00
committed by Vasily Levchenko
parent 114f5ae890
commit a38e64a7c8
2 changed files with 21 additions and 23 deletions

View File

@@ -252,9 +252,7 @@ RUNTIME_NORETURN void TerminateWithUnhandledException(KRef throwable) {
});
}
// Some libstdc++-based targets has limited support for std::current_exception and other C++11 functions.
// This restriction can be lifted later when toolchains will be updated.
#if KONAN_HAS_CXX11_EXCEPTION_FUNCTIONS
#if !KONAN_NO_EXCEPTIONS
namespace {
// Copy, move and assign would be safe, but not much useful, so let's delete all (rule of 5)
@@ -308,13 +306,13 @@ void SetKonanTerminateHandler() {
TerminateHandler::install();
}
#else // KONAN_OBJC_INTEROP
#else // !KONAN_NO_EXCEPTIONS
void SetKonanTerminateHandler() {
// Nothing to do.
}
#endif // KONAN_OBJC_INTEROP
#endif // !KONAN_NO_EXCEPTIONS
void DisallowSourceInfo() {
disallowSourceInfo = true;