Skip to content

Commit 13d936d

Browse files
committed
[libc++] Add __assertion_handler as forwarding header
After #131031, Clang modules build fails in chromium as we use libcxx directory directly like below. ``` stderr: ../../third_party/libc++/src/include/module.modulemap:2325:12: error: header '__assertion_handler' not found 2325 | header "__assertion_handler" // generated via CMake | ^ 1 error generated. ``` To fix this error, I added `__assertion_handler` as a forward header for our usage.
1 parent 8a53cc8 commit 13d936d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

libcxx/include/__assertion_handler

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// -*- C++ -*-
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5+
// See https://llvm.org/LICENSE.txt for license information.
6+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+
//
8+
//===----------------------------------------------------------------------===//
9+
10+
#ifndef _LIBCPP___ASSERTION_HANDLER
11+
#define _LIBCPP___ASSERTION_HANDLER
12+
13+
#include_next <__assertion_handler> // Note: this include is generated by CMake and is potentially vendor-provided.
14+
15+
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16+
# pragma GCC system_header
17+
#endif
18+
19+
#endif // _LIBCPP___ASSERTION_HANDLER

0 commit comments

Comments
 (0)