about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/scripts/config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_cranelift/scripts/config.sh')
-rw-r--r--compiler/rustc_codegen_cranelift/scripts/config.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/scripts/config.sh b/compiler/rustc_codegen_cranelift/scripts/config.sh
new file mode 100644
index 00000000000..53ada369b08
--- /dev/null
+++ b/compiler/rustc_codegen_cranelift/scripts/config.sh
@@ -0,0 +1,6 @@
+# Note to people running shellcheck: this file should only be sourced, not executed directly.
+
+set -e
+
+export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH"
+export DYLD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH"