summaryrefslogtreecommitdiffstats
path: root/compat/windows
diff options
context:
space:
mode:
Diffstat (limited to 'compat/windows')
-rwxr-xr-xcompat/windows/mslink9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/windows/mslink b/compat/windows/mslink
new file mode 100755
index 0000000..07b2b3e
--- /dev/null
+++ b/compat/windows/mslink
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+LINK_EXE_PATH=$(dirname "$(command -v cl)")/link
+if [ -x "$LINK_EXE_PATH" ]; then
+ "$LINK_EXE_PATH" $@
+else
+ link $@
+fi
+exit $?
OpenPOWER on IntegriCloud