Skip to content

QUIC: Gate QUICSignpost real implementation on canImport(os)#28

Merged
rnro merged 1 commit into
apple:mainfrom
rnro:signpost_linux
Jun 18, 2026
Merged

QUIC: Gate QUICSignpost real implementation on canImport(os)#28
rnro merged 1 commit into
apple:mainfrom
rnro:signpost_linux

Conversation

@rnro

@rnro rnro commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
  • Add canImport(os) to the #if SignpostOutput condition so the OSSignposter-backed QUICSignpost only compiles on platforms that ship Apple's OS signposting APIs.
  • Drop the dead #if canImport(Glibc) ... #elseif canImport(os) import block; the Glibc/Logging arm imported swift-log symbols that the struct never used.
  • On non-Apple platforms with the trait enabled, QUICSignpost now falls through to the existing #else no-op stub instead of failing to compile with "cannot find type 'OSSignpostIntervalState'".

* Add `canImport(os)` to the `#if SignpostOutput` condition so
  the `OSSignposter`-backed `QUICSignpost` only compiles on
  platforms that ship Apple's OS signposting APIs.
* Drop the dead `#if canImport(Glibc) ... #elseif canImport(os)`
  import block; the `Glibc`/`Logging` arm imported swift-log
  symbols that the struct never used.
* On non-Apple platforms with the trait enabled, `QUICSignpost`
  now falls through to the existing `#else` no-op stub instead of
  failing to compile with "cannot find type 'OSSignpostIntervalState'".
@rnro rnro merged commit da2df73 into apple:main Jun 18, 2026
20 checks passed
@rnro rnro deleted the signpost_linux branch June 18, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants