From b3f5d67172706501d3c3b7b03f2608a3be93b334 Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Thu, 1 Sep 2016 11:15:23 +0300 Subject: [PATCH] translator: add guide to compile kotlin native lib --- translator/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translator/README.md b/translator/README.md index 637c19c4de9..726c9b3c20a 100644 --- a/translator/README.md +++ b/translator/README.md @@ -33,6 +33,10 @@ Assembled the translator can be found in the following folder To execute the generated code you should use should link your code with kotlin native runtime. By default, you can find the appropriate library at `../kotstd/build/stdlib_x86.ll` +If this file is missing you can assemble it yourself + + $ cd ../kotstd && make clean && make + For linking, run the following command $ llvm-link-3.6 -S $(KOTLIN_NATIVE_RUNTIME) $(COMPILED_LLVM_CODE)