Skip to content

Move swiftDemangle linkage to ComputeCxx - #71

Merged
jcmosc merged 1 commit into
jcmosc:mainfrom
OpenSwiftUIProject:codex/compute-linux-demangle
Sep 13, 2026
Merged

Move swiftDemangle linkage to ComputeCxx#71
jcmosc merged 1 commit into
jcmosc:mainfrom
OpenSwiftUIProject:codex/compute-linux-demangle

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Downstream packages can fail to link/test on Linux/macOS because ComputeCxx references Swift demangler symbols, but only the test targets link swiftDemangle.

Move the unconditional swiftDemangle linker setting to ComputeCxx and remove the declarations from the three test targets. Tests and downstream consumers inherit the dependency from the library target that uses it.

Validated with Swift 6.3.3 on ARM64:

  • Ubuntu 22.04: all 232 tests in 120 suites pass.
  • macOS 26.6.2 with Xcode 26.6: all 289 tests in 139 suites pass.
  • A standalone Linux consumer builds, links, and passes attribute creation, read, and write checks without its own demangler linker setting.

@Kyle-Ye
Kyle-Ye force-pushed the codex/compute-linux-demangle branch from 60f82c8 to 3180e56 Compare September 6, 2026 17:11
@jcmosc
jcmosc merged commit 04b09e6 into jcmosc:main Sep 13, 2026
2 checks passed
@jcmosc

jcmosc commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Nice!

@Kyle-Ye
Kyle-Ye deleted the codex/compute-linux-demangle branch September 14, 2026 03:17
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