From 83a0b734594ddb33ff9166b8422b493959599131 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Fri, 7 Feb 2020 15:07:26 -0300 Subject: [PATCH] Change CRYSTAL_PATH to allow shards to hide std-lib (#56) --- linux/files/crystal-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/files/crystal-wrapper b/linux/files/crystal-wrapper index ab6dc3f6..2813d4bb 100755 --- a/linux/files/crystal-wrapper +++ b/linux/files/crystal-wrapper @@ -97,7 +97,7 @@ _canonicalize_file_path() { SCRIPT_DIR="$(dirname "$(realpath "$0" || echo "$0")")" ROOT_DIR="$SCRIPT_DIR/.." -export CRYSTAL_PATH="${CRYSTAL_PATH:-"$ROOT_DIR/share/crystal/src:lib"}" +export CRYSTAL_PATH="${CRYSTAL_PATH:-"lib:$ROOT_DIR/share/crystal/src"}" export PATH="$ROOT_DIR/lib/crystal/bin:$PATH" export LIBRARY_PATH="$ROOT_DIR/lib/crystal/lib${LIBRARY_PATH:+:$LIBRARY_PATH}" export CRYSTAL_LIBRARY_PATH="${CRYSTAL_LIBRARY_PATH:+$CRYSTAL_LIBRARY_PATH:}$ROOT_DIR/lib/crystal/lib"