Files
codeql/swift/extractor/extractor.sh
Paolo Tranquilli 03d7adb303 Swift: wrap extractor with shell script
This is in preparation for the extractor to use shared libraries
packaged alongside it.

We could probably also move the `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` logic
in it, where it would be simpler and more robust.
2022-12-13 09:07:37 +01:00

10 lines
179 B
Bash
Executable File

#!/bin/bash
if [[ "$(uname)" == Darwin ]]; then
export DYLD_FALLBACK_LIBRARY_PATH=$(dirname "$0")
else
export LD_LIBRARY_PATH=$(dirname "$0")
fi
exec -a "$0" "$0.real" "$@"