6 Commits

Author SHA1 Message Date
Tim Condon f01e3400ae Update README.md for archiving 2024-10-28 14:16:39 +00:00
Franz Busch 7277ee0e03 Merge pull request #73 from euanh/do-not-build-demangle-after-5.9
Do not build Demangle on Swift 5.9 or above
2024-06-17 11:33:03 +02:00
Euan Harris d4f33e71ca Do not build Demangle on Swift 5.9 or above
Pull request #68 prevents Backtrace from being built on Swift 5.9 and above,
but Demangle is still built and fails when the importing project uses musl.
2024-06-13 17:51:30 +01:00
Konrad `ktoso` Malawski 525d45046b Merge pull request #70 from yim-lee/ci-5.10 2024-06-14 00:34:35 +09:00
Yim Lee adc931806e fix ruby version too old error 2024-01-22 14:22:24 -08:00
Yim Lee defae63094 Add CI for Swift 5.10 2024-01-22 13:06:44 -08:00
6 changed files with 33 additions and 4 deletions
+3
View File
@@ -1,3 +1,6 @@
> [!IMPORTANT]
> This library is now archived as backtracing is built into Swift 5.9+
# Backtrace
This Swift package provides support for automatically printing crash backtraces of Swift programs.
+6
View File
@@ -12,6 +12,10 @@
//
//===----------------------------------------------------------------------===//
// Swift 5.9 has its own built-in backtracing support in the runtime;
// we don't want to activate this library if we're using 5.9 or above.
#if !(swift(>=5.9) && !os(Windows))
#if os(Linux)
import Glibc
#elseif os(Windows)
@@ -55,3 +59,5 @@ internal func _stdlib_demangleName(_ mangledName: String) -> String {
}
}
#endif
#endif
+3 -1
View File
@@ -15,8 +15,10 @@
import Backtrace
#if canImport(Darwin)
import Darwin
#elseif os(Linux)
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#endif
#if swift(<5.9) || os(Windows)
+2 -2
View File
@@ -19,8 +19,8 @@ RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools
# ruby and jazzy for docs generation
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
# jazzy no longer works on older version of ubuntu as ruby is too old.
RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc ; fi
RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy ; fi
RUN if [ "${ubuntu_version}" = "jammy" ] ; then echo "gem: --no-document" > ~/.gemrc ; fi
RUN if [ "${ubuntu_version}" = "jammy" ] ; then gem install jazzy ; fi
# tools
RUN mkdir -p $HOME/.tools
+17
View File
@@ -0,0 +1,17 @@
version: "3"
services:
runtime-setup:
image: swift-linux-backtrace:22.04-5.10
build:
args:
base_image: "swiftlang/swift:nightly-5.10-jammy"
test:
image: swift-linux-backtrace:22.04-5.10
environment:
- FORCE_TEST_DISCOVERY=--enable-test-discovery
shell:
image: swift-linux-backtrace:22.04-5.10
+2 -1
View File
@@ -6,7 +6,8 @@ services:
image: swift-linux-backtrace:22.04-5.9
build:
args:
base_image: "swiftlang/swift:nightly-5.9-jammy"
ubuntu_version: "jammy"
swift_version: "5.9"
test:
image: swift-linux-backtrace:22.04-5.9