This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi] Fix ASAN build with older compiler-rt versions.
ClosedPublic

Authored by EricWF on Sep 14 2017, 3:10 PM.

Details

Summary

compiler-rt recently added the __asan_handle_no_return() function that libc++abi needs to use, however older versions of compiler-rt don't provide this interface and that breaks the libc++abi build.

This patch attempts to fix the issues by using a macro to detect if asan_interface.h is new enough to provide the function.

See D37871

Diff Detail