Skip to content

fix(host,kmp): Linux ld64.lld linker flavor/sysroot & K/N DebugTransparentStepping default - #6

Merged
Apdelrahman1911 merged 2 commits into
mainfrom
fix/linux-lld-and-kn-debug
Dec 5, 2026
Merged

Apdelrahman1911 merged 2 commits into
mainfrom
fix/linux-lld-and-kn-debug

Conversation

@Apdelrahman1911

Copy link
Copy Markdown

Fixes two Wave 13 Ubuntu 24.04 qualification blockers:

  1. OriginalHostCompiler.swift: Passing an absolute path via -use-ld=<path>/ld64.lld prevented clang from recognizing LLD as the Darwin linker flavor and omitted -isysroot, causing ld64.lld: error: must specify -platform_version and missing or unsupported -arch arm64. Pass linker flavor (-fuse-ld=lld), --ld-path=, and -isysroot cleanly to the clang linker driver for both direct and split dSYM links on device and simulator.
  2. GradleFrameworkProducer.swift: Disable kotlin.native.binary.enableDebugTransparentStepping=false by default for Linux Debug KMP framework builds (while respecting explicit user overrides) to prevent Kotlin/Native 2.4.x DebugInfoC.cpp:96 SIGABRT crashes.

Includes unit tests covering direct/split linker invocations and Gradle override handling.

@Apdelrahman1911
Apdelrahman1911 merged commit 1ed1081 into main Dec 5, 2026
7 checks passed
@Apdelrahman1911
Apdelrahman1911 deleted the fix/linux-lld-and-kn-debug branch December 5, 2026 19:41
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