Skip to content
Snippets Groups Projects
Commit cad0908a authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Break out of build process if in vanilla MSYS

parent c5fc0433
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,14 @@ cd $(dirname $0)/../..
PLATFORM=`uname -s`
function is_msys() {
if [ "${PLATFORM/MSYS}" != "$PLATFORM" ]; then
echo true
else
exit 1
fi
}
function is_mingw() {
if [ "${PLATFORM/MINGW}" != "$PLATFORM" ]; then
echo true
......@@ -108,6 +116,12 @@ VENV=${2:-$(venv $PYTHON)}
VENV_RELATIVE_PYTHON=${3:-$(venv_relative_python)}
TOOLCHAIN=${4:-$(toolchain)}
if [ $(is_msys) ]; then
echo "MSYS doesn't directly provide the right compiler(s);"
echo "switch to a MinGW shell."
exit 1
fi
ROOT=`pwd`
export CFLAGS="-I$ROOT/include -std=gnu99 -fno-wrapv $CFLAGS"
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment