gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

MinGW: Add exception-handling façades to libobjc2 #280

Closed qmfrederik closed 4 months ago

qmfrederik commented 4 months ago

The current implementation uses functions which are declared in the C++ standard library to throw and catch exceptions. This requires linking with said library, which most toolchains do not do natively.

qmfrederik commented 4 months ago

Also fixes the visibility of objc_alloc, objc_allocWithZone and objc_allocInit - https://github.com/gnustep/libobjc2/pull/277#issuecomment-1939214893

qmfrederik commented 4 months ago

Also removes the weak annotation on functions in objcxx_eh.h - https://github.com/gnustep/libobjc2/pull/279/files#r1492653201

qmfrederik commented 4 months ago

Twin commit in the clang repo: https://github.com/llvm/llvm-project/commit/10db940979c2753ef547956e6b94f610df6a84fe

qmfrederik commented 4 months ago

@davidchisnall Would you mind reviewing this and let me know what you think?