kscript icon indicating copy to clipboard operation
kscript copied to clipboard

Allow setting an alternate kotlinc binary (or use kotlinc-jvm)

Open cgruber opened this issue 2 years ago • 0 comments

In some situations, notably in some package managers like hermit, which have installers which don't add the "kotlinc" binary so they won't have kotlin-native and kotlin-regular packages conflict, they end up with someone needing to explicitly point at "kotlinc-jvm" to invoke it. kscript makes an assumption that "kotlinc" will exist in "KOTLIN_HOME" and that isn't always true.

Is there a possibility to allow for a "--kotlinc-binary" flag so an alternative can be used. Or switch kscript to use kotlinc-jvm if that is, indeed, the actual dependency?

cgruber avatar Feb 21 '23 17:02 cgruber