Swift: fix interaction between bash wrapper and open redirection on macOS

This commit is contained in:
Paolo Tranquilli
2022-12-15 09:50:31 +01:00
parent 793de3196b
commit e42ae09e1c

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [[ "$(uname)" == Darwin ]]; then
export DYLD_FALLBACK_LIBRARY_PATH=$(dirname "$0")
export DYLD_LIBRARY_PATH=$(dirname "$0")
else
export LD_LIBRARY_PATH=$(dirname "$0")
fi