aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/helper_scripts
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-04-11 11:04:42 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-04-11 11:04:42 +0200
commit78cb931afd9bf4ae33ecaf26dbd498cff41d6b52 (patch)
tree3f010351a8c6c94304989a19ee86164b07a22ffb /tools/run_tests/helper_scripts
parent3f5b8aad6485d7107fa72f3b9df1cb9f400ee1a8 (diff)
address review comments
Diffstat (limited to 'tools/run_tests/helper_scripts')
-rwxr-xr-xtools/run_tests/helper_scripts/build_csharp.sh10
-rw-r--r--tools/run_tests/helper_scripts/pre_build_csharp.bat3
2 files changed, 5 insertions, 8 deletions
diff --git a/tools/run_tests/helper_scripts/build_csharp.sh b/tools/run_tests/helper_scripts/build_csharp.sh
index 00897ecbe6..a7562a7f4a 100755
--- a/tools/run_tests/helper_scripts/build_csharp.sh
+++ b/tools/run_tests/helper_scripts/build_csharp.sh
@@ -32,12 +32,10 @@ set -ex
cd $(dirname $0)/../../../src/csharp
-OVERRIDE_NATIVELIB_MAYBE=""
if [ "$CONFIG" == "gcov" ]
then
- # overriding NativeDependenciesConfigurationUnix makes C# project pick up
- # the gcov flavor of grpc_csharp_ext
- OVERRIDE_NATIVELIB_MAYBE="/p:NativeDependenciesConfigurationUnix=$CONFIG"
+ # overriding NativeDependenciesConfigurationUnix makes C# project pick up the gcov flavor of grpc_csharp_ext
+ dotnet build --configuration $MSBUILD_CONFIG /p:NativeDependenciesConfigurationUnix=gcov Grpc.sln
+else
+ dotnet build --configuration $MSBUILD_CONFIG Grpc.sln
fi
-
-dotnet build --configuration $MSBUILD_CONFIG $OVERRIDE_NATIVELIB_MAYBE Grpc.sln
diff --git a/tools/run_tests/helper_scripts/pre_build_csharp.bat b/tools/run_tests/helper_scripts/pre_build_csharp.bat
index c7684f538e..e59dac4edc 100644
--- a/tools/run_tests/helper_scripts/pre_build_csharp.bat
+++ b/tools/run_tests/helper_scripts/pre_build_csharp.bat
@@ -44,9 +44,8 @@ mkdir %ARCHITECTURE%
cd %ARCHITECTURE%
@rem TODO(jtattermusch): Stop hardcoding path to yasm once Jenkins workers can locate yasm correctly
cmake -G "Visual Studio 14 2015" -A %ARCHITECTURE% -DgRPC_BUILD_TESTS=OFF -DgRPC_MSVC_STATIC_RUNTIME=ON -DCMAKE_ASM_NASM_COMPILER="C:/Program Files (x86)/yasm/yasm.exe" ../../.. || goto :error
-cd ..\..\..
-cd src/csharp
+cd ..\..\..\src\csharp
dotnet restore Grpc.sln || goto :error