samples: Refactor setting KONAN_HOME variable

This commit is contained in:
Ilya Matveev
2017-11-15 14:44:24 +07:00
committed by ilmat192
parent b96ede81d2
commit fc5057868b
14 changed files with 21 additions and 66 deletions
+1 -5
View File
@@ -2,11 +2,7 @@
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ -z "$KONAN_HOME" ]; then
PATH="$DIR/../../dist/bin:$DIR/../../bin:$PATH"
else
PATH="$KONAN_HOME/bin:$PATH"
fi
source "$DIR/../konan.sh"
CFLAGS_macbook=-I/opt/local/include
CFLAGS_linux="-I /usr/include -I /usr/include/x86_64-linux-gnu"