Fix for previous commit

This commit is contained in:
2018-08-07 18:21:18 +02:00
parent 338d6f3be9
commit 65fc21feb1

View File

@@ -68,10 +68,13 @@ elif [[ "${KERNEL_NAME}" == "MINGW"* ]]; then
echo "ERROR: On Windows MSVC_ARCH is to be set to either x86 or x64."
exit 1
fi
if [ "${MSVC_ARCH}" == "x86" ]; then
if [ "${MSVC_ARCH}" == "x64" ]; then
BITNESS="64"
elif [ "${MSVC_ARCH}" == "x86" ]; then
BITNESS="32"
else
echo "ERROR: Unkown MSVC architecture ${MSVC_ARCH}"
exit 1
fi
# TODO(sergey): Detect MSVC install somehow.
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" "${MSVC_ARCH}"