From 1f9d41b291bfc950bb5e25487850ba8fae5125d9 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Fri, 10 Mar 2017 13:39:01 +0300 Subject: [PATCH] Added a TODO on -Dkonan.home use in pre-dist world. --- .../org/jetbrains/kotlin/native/interop/gen/jvm/main.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt index 918f1b5c784..19e5b6557a1 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt @@ -169,6 +169,10 @@ private fun processLib(konanHome: String, val konanFile = File(konanFileName) val konanProperties = loadProperties(konanFile, mapOf()) + // TODO: We use -Dkonan.home in the absence of fully built 'dist' + // to locate the 'dependencies' directory. + // Eventually we need to pull the necessary content into 'dist'. + // And provide a set of flags to find the components in the absence of 'dist'. val llvmHome = konanProperties.getOsSpecific("llvmHome")!! val dependencies = File("$konanHome/../dependencies/all").canonicalPath val llvmInstallPath = "$dependencies/$llvmHome"