diff options
Diffstat (limited to 'tools/run_tests/helper_scripts/pre_build_cmake.bat')
-rw-r--r-- | tools/run_tests/helper_scripts/pre_build_cmake.bat | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/run_tests/helper_scripts/pre_build_cmake.bat b/tools/run_tests/helper_scripts/pre_build_cmake.bat index e4bed8c197..d89fc5fec2 100644 --- a/tools/run_tests/helper_scripts/pre_build_cmake.bat +++ b/tools/run_tests/helper_scripts/pre_build_cmake.bat @@ -14,6 +14,9 @@ setlocal +set GENERATOR=%1 +set ARCHITECTURE=%2 + cd /d %~dp0\..\..\.. mkdir cmake @@ -25,7 +28,7 @@ cd build @rem If yasm is not on the path, use hardcoded path instead. yasm --version || set USE_HARDCODED_YASM_PATH_MAYBE=-DCMAKE_ASM_NASM_COMPILER="C:/Program Files (x86)/yasm/yasm.exe" -cmake -G "Visual Studio 14 2015" -DgRPC_BUILD_TESTS=ON %USE_HARDCODED_YASM_PATH_MAYBE% ../.. || goto :error +cmake -G %GENERATOR% -A %ARCHITECTURE% -DgRPC_BUILD_TESTS=ON %USE_HARDCODED_YASM_PATH_MAYBE% ../.. || goto :error endlocal |