rust/scripts/config.sh
2021-06-20 12:56:47 +02:00

8 lines
267 B
Bash

# Note to people running shellcheck: this file should only be sourced, not executed directly.
set -e
dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/../build"; pwd)
export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:"$dir"/lib"
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH