Set a default target in wrapper scripts and executables
This commit is contained in:
1 parent
1bc3d75a41
commit
b5deb9fc1f
7 files changed
+33
-1
No files matched your search
@@ -5,6 +5,10 @@ export PATH=$DIR:$PATH
|
||||
|
||||
BASENAME="$(basename "$0")"
|
||||
TARGET="${BASENAME%-*}"
|
||||
DEFAULT_TARGET=x86_64-w64-mingw32
|
||||
if [ "$TARGET" = "$BASENAME" ]; then
|
||||
TARGET=$DEFAULT_TARGET
|
||||
fi
|
||||
ARCH="${TARGET%%-*}"
|
||||
case $ARCH in
|
||||
i686) M=i386 ;;
|
||||
|
||||
Reference in new issue
Block a user