libc++abi: Fix header path

Temporary fix until upstream catches up.
This commit is contained in:
klzgrad 2021-04-24 08:17:18 +08:00
parent b2d2eaa3af
commit b224e2c290
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,7 @@ source_set("libc++abi") {
# TODO(thakis): This is a gross workaround for https:/llvm.org/PR49313
# We had to copy refstring.h into libc++abi for the relative path to work,
# but the copy includes more stuff from libc++'s internal headers.
include_dirs = [ "../libc++/trunk/src/include" ]
include_dirs = [ "../libc++/trunk" ]
if (!is_mac) {
sources -= [
"trunk/src/cxa_exception.cpp",

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
#include "../../libcxx/src/include/refstring.h"
#include "stdexcept"
#include "new"
#include <cstdlib>
@ -14,6 +13,9 @@
#include <cstdint>
#include <cstddef>
// This includes an implementation file from libc++.
#include "src/include/refstring.h"
static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), "");
namespace std // purposefully not using versioning namespace