Skip to content

Commit 7a07270

Browse files
authored
Include <functional> in Demangle.h (#59)
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]>
1 parent 27ef10a commit 7a07270

File tree

1 file changed

+1
-0
lines changed
  • Sources/CSwiftDemangle/PrivateHeaders/include/swift/Demangling

1 file changed

+1
-0
lines changed

Sources/CSwiftDemangle/PrivateHeaders/include/swift/Demangling/Demangle.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <string>
2424
#include <cassert>
2525
#include <cstdint>
26+
#include <functional>
2627
#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 1
2728
#include "llvm/ADT/StringRef.h"
2829
// #include "swift/Runtime/Config.h"

0 commit comments

Comments
 (0)