samples: Support custom path to konanc in build.sh

This commit is contained in:
Ilya Matveev
2017-11-03 13:48:33 +03:00
committed by ilmat192
parent 638d23e8b1
commit 9937833a53
12 changed files with 67 additions and 14 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
#!/usr/bin/env bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )
PATH=$DIR/../../dist/bin:$DIR/../../bin:$PATH
if [ -z "$KONAN_HOME" ]; then
PATH="$DIR/../../dist/bin:$DIR/../../bin:$PATH"
else
PATH="$KONAN_HOME/bin:$PATH"
fi
SUFFIX=kexe
if [ x$TARGET == x ]; then