Child of #1682. Type: decision. See anchor Section 4.
The one decision that unblocks everything downstream: #1351's explicitly-deferred TODO
("decide if a separate rule is needed for klibs or fit it into existing platform-specific
rules").
Options (full discussion in anchor Section 4):
My recommendation: (A) as the core, with target selection by --platforms (the
configuration half of (B)), and a later kt_multiplatform_library / metadata-klib path for
expect/actual. Grounding: platform klibs are target-tagged (verified in the prototype:
manifests read native_targets=macos_arm64 vs linux_x64), so a platform klib isn't a single
portable artifact; a dedicated rule models that honestly.
Naming: #1351 used kt_library for the neutral klib rule; the prototype uses
kt_native_library. We should converge on one. (I lean kt_library actually, despite my prototype)
Asking for: pick A/B/C and the names.
Child of #1682. Type: decision. See anchor Section 4.
The one decision that unblocks everything downstream: #1351's explicitly-deferred TODO
("decide if a separate rule is needed for klibs or fit it into existing platform-specific
rules").
Options (full discussion in anchor Section 4):
kt_native_library/kt_libraryproduces klibs;platform-specific rules consume them. What Add initial kotlin native toolchain and
kt_libraryrule #1351 built; matches @restingbull's native-firststeer (Re-enable Javascript support #1347).
--platforms.kt_jvm_library.My recommendation: (A) as the core, with target selection by
--platforms(theconfiguration half of (B)), and a later
kt_multiplatform_library/ metadata-klib path forexpect/actual. Grounding: platform klibs are target-tagged (verified in the prototype:manifests read
native_targets=macos_arm64vslinux_x64), so a platform klib isn't a singleportable artifact; a dedicated rule models that honestly.
Naming: #1351 used
kt_libraryfor the neutral klib rule; the prototype useskt_native_library. We should converge on one. (I lean kt_library actually, despite my prototype)Asking for: pick A/B/C and the names.