napperley
03/08/2023, 3:00 AMkotlinc-native -nostdlib -p static -target rp2040 src
the following error appears:
warning: skipping /home/napperley/repos/kotlin/kotlin-native/dist/klib/common/org.jetbrains.kotlinx.kotlinx-cli. The target doesn't match. Expected 'rp2040', found [linux_x64]
error: could not find "/home/napperley/repos/kotlin/kotlin-native/dist/klib/common/org.jetbrains.kotlinx.kotlinx-cli" in [/home/napperley/vscode_projects/rp2040_hello, /home/napperley/.konan/klib, /home/napperley/repos/kotlin/kotlin-native/dist/klib/common, /home/napperley/repos/kotlin/kotlin-native/dist/klib/platform/rp2040]
Adam S
03/08/2023, 9:16 AMnapperley
03/08/2023, 7:38 PM-no-endorsed-libs
which causes the compiler to not include endorsed libraries (non core Kotlin libraries incl KotlinX CLI) with a Kotlin program, Shared library, Static library, or anything else that the compiler can produce.