summarylogtreecommitdiffstats
path: root/dyld
diff options
context:
space:
mode:
Diffstat (limited to 'dyld')
-rw-r--r--dyld16
1 files changed, 16 insertions, 0 deletions
diff --git a/dyld b/dyld
new file mode 100644
index 000000000000..91f702f63b4e
--- /dev/null
+++ b/dyld
@@ -0,0 +1,16 @@
+#!/usr/bin/sh
+
+if [[ -f $1 ]]; then
+ file -b $1 | grep -q "Mach-O" | grep -q "executable" 2> /dev/null || binary=$1
+fi
+
+if [[ -n $binary && $(file -b $binary) == *x86_64* ]]; then
+ echo -e "\t\t\033[1;44;37mDarling 64-bit:\033[0;44;37m `basename $binary`\033[0m"
+ /usr/bin/dyld64 $@
+elif [[ -n $binary && $(file -b $binary) == *i386* ]]; then
+ echo -e "\t\t\033[1;44;37mDarling 32-bit:\033[0;44;37m `basename $binary`\033[0m"
+ /usr/bin/dyld32 $@
+else
+ echo -e "\t\t\033[1;44;37mDarling 64-bit\033[0m"
+ /usr/bin/dyld64 $@
+fi