SwiftDemangle: build on non-Darwin targets

This can be useful as a consumer for demangling swift symbols.  Build
the shared library on non-Darwin targets as well.
This commit is contained in:
Saleem Abdulrasool
2017-11-01 11:55:36 -07:00
parent 0a619ab57f
commit 7e888d43cd
5 changed files with 39 additions and 6 deletions

View File

@@ -17,6 +17,9 @@
#include "swift/Demangling/Demangle.h"
#include "swift/SwiftDemangle/SwiftDemangle.h"
#if defined(__linux__) || defined(_WIN32)
#include <bsd/string.h>
#endif
static size_t swift_demangle_getDemangledName_Options(const char *MangledName,
char *OutputBuffer, size_t Length,