Files
llvm-mingw/wrappers/dlltool-wrapper.sh
T
Martin Storsjö 5899f4f536 Add the installation bin directory to the path internally in wrapper scripts
This allows invoking the script frontends via an explicit path,
without adding the directory to the PATH environment variable before
calling them.
2018-05-07 10:24:24 +03:00

15 lines
300 B
Bash
Executable File

#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH=$DIR:$PATH
TARGET="$(basename $0 | sed 's/-[^-]*$//')"
ARCH=$(echo $TARGET | sed 's/-.*//')
case $ARCH in
i686) M=i386 ;;
x86_64) M=i386:x86-64 ;;
armv7) M=arm ;;
aarch64) M=arm64 ;;
esac
llvm-dlltool -m $M "$@"