From 98a48be0e5801806445e2004ec992ddab9eebbfa Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Tue, 3 Apr 2018 13:00:29 +0300 Subject: [PATCH] Add documentation for KONAN_DATA_DIR variable --- HACKING.md | 3 +++ LIBRARIES.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HACKING.md b/HACKING.md index 2f9330f35b9..2a62cf43490 100644 --- a/HACKING.md +++ b/HACKING.md @@ -20,6 +20,9 @@ There are several gradle flags one can use for Konan build. ./gradlew -Pprefix=external_codegen_box_cast run_external + ## Compiler environment variables + +* **KONAN_DATA_DIR** changes `.konan` local data directory location (`$HOME/.konan` by default). Works both with cli compiler and gradle plugin ## Testing diff --git a/LIBRARIES.md b/LIBRARIES.md index e4564f147f5..410725c64fc 100644 --- a/LIBRARIES.md +++ b/LIBRARIES.md @@ -103,7 +103,7 @@ When given `-library foo` flag, the compiler searches the `foo` library in the * All repositories specified with `-repo` flag. - * Libraries installed in the default repository (For now the default is `~/.konan` ). + * Libraries installed in the default repository (For now the default is `~/.konan`, however it could be changed by setting **KONAN_DATA_DIR** environment variable). * Libraries installed in `$installation/klib` directory.