Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
recent changes to support windows broke macos (#44)
Browse files Browse the repository at this point in the history
motivation: unbreak macos

changes: make _stdlib_demangleName only available on macOS and Windows where it is fully supported
  • Loading branch information
tomerd authored Apr 20, 2021
1 parent 1ca1dbd commit 54a65d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Backtrace/Demangle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import ucrt
#endif
#endif

#if os(Linux) || os(Windows)
@_silgen_name("swift_demangle")
public
func _stdlib_demangleImpl(
Expand Down Expand Up @@ -53,3 +54,4 @@ internal func _stdlib_demangleName(_ mangledName: String) -> String {
return mangledName
}
}
#endif

0 comments on commit 54a65d6

Please sign in to comment.