Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelist UnexpectedException test for all architectures and recommend libunwind in INSTALL #291

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
[b|B]uild
Debug
Release
.cache
8 changes: 8 additions & 0 deletions INSTALL
Expand Up @@ -6,6 +6,14 @@ runtime. Note that although this runtime should build with gcc, it is strongly
recommended that you compile it with clang and clang++ as your [Objective-]C and
[Objective-]C++ compilers.

It is recommended that you use the LLVM runtime and unwinder or a recent version
of GCC (>= 14) on GNU/Linux to avoid a
[bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114843) in GCC and the libgcc
unwinder.

If CompilerRT and libunwind are installed on your machine use
`-DCMAKE_EXE_LINKER_FLAGS="-rtlib=compiler-rt -unwindlib=libunwind"`.

Basic Building
--------------

Expand Down
4 changes: 0 additions & 4 deletions Test/UnexpectedException.m
Expand Up @@ -31,7 +31,6 @@ LONG WINAPI _UnhandledExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo)

int main(void)
{
#if !(defined(__arm__) || defined(__ARM_ARCH_ISA_A64)) && !defined(__powerpc__)
#if defined(_WIN32) && !defined(__MINGW32__)
// also verify that an existing handler still gets called after we set ours
SetUnhandledExceptionFilter(&_UnhandledExceptionFilter);
Expand All @@ -50,7 +49,4 @@ int main(void)
assert(0 && "should not be reached!");

return -1;
#endif
// FIXME: Test currently fails on ARM and AArch64
return 77; // Skip test
}