[K/N] Move runtime bitcode files out of stdlib

Native bitcode files were moved out of the stdlib to the default
location of bitcode files in the dist.
Now it is possible to build stdlib separately and once as a klib
without bitcode files inside.
This commit is contained in:
Pavel Punegov
2023-12-07 17:13:22 +01:00
committed by Space Team
parent 599998039e
commit 2d2714c8de
4 changed files with 3 additions and 12 deletions
@@ -90,10 +90,10 @@ class Distribution private constructor(private val serialized: Serialized) : jav
fun defaultNatives(target: KonanTarget) = "$konanHome/konan/targets/${target.visibleName}/native"
fun runtime(target: KonanTarget) = runtimeFileOverride ?: "$stdlibDefaultComponent/targets/${target.visibleName}/native/runtime.bc"
fun runtime(target: KonanTarget) = runtimeFileOverride ?: "${defaultNatives(target)}/runtime.bc"
fun compilerInterface(target: KonanTarget) =
runtimeFileOverride ?: "$stdlibDefaultComponent/targets/${target.visibleName}/native/compiler_interface.bc"
runtimeFileOverride ?: "${defaultNatives(target)}/compiler_interface.bc"
fun platformDefs(target: KonanTarget) = "$konanHome/konan/platformDef/${target.visibleName}"