Skip to content

Move swiftDemangle linkage to ComputeCxx - #71

Open
Kyle-Ye wants to merge 1 commit into
jcmosc:mainfrom
OpenSwiftUIProject:codex/compute-linux-demangle
Open

Move swiftDemangle linkage to ComputeCxx#71
Kyle-Ye wants to merge 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
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.

1 participant