Fix package size issue on Windows
@echo on
+@rem The `vs2015_win-64` compiler activate package sets CFLAGS and CXXFLAGS
+@rem to "-MD -GL". Unfortunately that causes a huge ballooning in static
+@rem library size (more than 100MB per .lib file). Unsetting those flags
+@rem simply works.
+
+set CFLAGS=
+set CXXFLAGS=
+
mkdir build-cpp
if errorlevel 1 exit 1
@@ -16,10 +24,6 @@ cmake .. ^
-DgRPC_SSL_PROVIDER="package" ^
-DgRPC_ZLIB_PROVIDER="package"
-dir %PREFIX% /S
-
cmake --build . --config Release --target install
if errorlevel 1 exit 1
-
-dir %PREFIX% /S
