Skip to content

Commit

Permalink
Include <functional> in Demangle.h (#59)
Browse files Browse the repository at this point in the history
This resolves a build error when using Bazel to build on Xcode 15.3

```
In file included from external/swift-index-store~/Sources/CSwiftDemangle/CSwiftDemangle.cpp:1:
external/swift-index-store~/Sources/CSwiftDemangle/PrivateHeaders/include/swift/Demangling/Demangle.h:61:8: error: no template named 'function' in namespace 'std'
  std::function<std::string(uint64_t, uint64_t)> GenericParameterName =
  ~~~~~^
1 error generated.
Error in child process '/usr/bin/xcrun'. 1
```

Signed-off-by: Ethan Brady <[email protected]>
  • Loading branch information
etbrady authored Mar 28, 2024
1 parent 27ef10a commit 7a07270
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <string>
#include <cassert>
#include <cstdint>
#include <functional>
#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 1
#include "llvm/ADT/StringRef.h"
// #include "swift/Runtime/Config.h"
Expand Down

0 comments on commit 7a07270

Please sign in to comment.