aboutsummaryrefslogtreecommitdiff
path: root/cl-12
diff options
context:
space:
mode:
Diffstat (limited to 'cl-12')
-rwxr-xr-xcl-1220
1 files changed, 3 insertions, 17 deletions
diff --git a/cl-12 b/cl-12
index 8bda7ff..29490fc 100755
--- a/cl-12
+++ b/cl-12
@@ -1,20 +1,6 @@
#! /usr/bin/env bash
-trap 'exit 1' ERR
+src="$(dirname $(realpath ${BASH_SOURCE[0]}))"
-SDK="C:\Program Files (x86)\Windows Kits\8.1"
-
-INCLUDE="$SDK\include\shared;$SDK\include\um;$SDK\include\winrt"
-LIB="$SDK\lib\winv6.3\um\x86"
-
-VC="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
-
-INCLUDE="$VC\include;$INCLUDE"
-LIB="$VC\lib;$LIB"
-
-export INCLUDE
-export LIB
-
-export WINEDEBUG=fixme-all
-
-wine "$VC\bin\cl.exe" $*
+source "$src/msvc-12"
+source "$src/msvc-cl-common"