Skip to content

Commit 9a90aa0

Browse files
authored
[libc++][modules] Add using_if_exists attribute (#77559) (#78909)
libc on macOS does not provide at_quick_exit or quick_exit. This allows modules to build on macOS and defer any errors to usage site of these symbols. Fixes: #77559
1 parent c083b38 commit 9a90aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/modules/std.compat/cstdlib.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export {
1616
// [support.start.term], start and termination
1717
using ::_Exit;
1818
using ::abort;
19-
using ::at_quick_exit;
19+
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
2020
using ::atexit;
2121
using ::exit;
22-
using ::quick_exit;
22+
using ::quick_exit _LIBCPP_USING_IF_EXISTS;
2323

2424
using ::getenv;
2525
using ::system;

0 commit comments

Comments
 (0)