diff options
author | Craig Tiller <ctiller@google.com> | 2016-03-30 08:29:24 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-03-30 08:29:24 -0700 |
commit | 15e0dfd345d46e218f8505bb5bda02b715c14fc3 (patch) | |
tree | 3408a6c90ae3abf9c5f80a03d63cc3246f4cacd3 | |
parent | 6771361fada605596428e7ce332ef28277323d2e (diff) | |
parent | e39707458df9c77a2a2570f9dbf3d18b01ca4d68 (diff) |
Merge github.com:grpc/grpc into optionalize_roundrobin
-rwxr-xr-x | tools/run_tests/run_tests.py | 38 | ||||
-rw-r--r-- | vsprojects/build_vs2010.bat | 2 | ||||
-rw-r--r-- | vsprojects/build_vs2013.bat | 2 | ||||
-rw-r--r-- | vsprojects/build_vs2015.bat | 2 |
4 files changed, 17 insertions, 27 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 6b84daea54..a9438045aa 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -120,12 +120,7 @@ def get_c_tests(travis, test_lang) : def _check_compiler(compiler, supported_compilers): if compiler not in supported_compilers: - raise Exception('Compiler %s not supported (on this platform).' % compiler) - - -def _check_arch(arch, supported_archs): - if arch not in supported_archs: - raise Exception('Architecture %s not supported.' % arch) + raise Exception('Compiler %s not supported.' % compiler) def _is_use_docker_child(): @@ -469,19 +464,7 @@ class CSharpLanguage(object): def configure(self, config, args): self.config = config self.args = args - if self.platform == 'windows': - # Explicitly choosing between x86 and x64 arch doesn't work yet - _check_arch(self.args.arch, ['default']) - self._make_options = [_windows_toolset_option(self.args.compiler), - _windows_arch_option(self.args.arch)] - else: - _check_compiler(self.args.compiler, ['default']) - if self.platform == 'mac': - # On Mac, official distribution of mono is 32bit. - self._make_options = ['EMBED_OPENSSL=true', 'EMBED_ZLIB=true', - 'CFLAGS=-arch i386', 'LDFLAGS=-arch i386'] - else: - self._make_options = ['EMBED_OPENSSL=true', 'EMBED_ZLIB=true'] + _check_compiler(self.args.compiler, ['default']) def test_specs(self): with open('src/csharp/tests.json') as f: @@ -528,16 +511,23 @@ class CSharpLanguage(object): return [['tools/run_tests/pre_build_csharp.sh']] def make_targets(self): - return ['grpc_csharp_ext'] + # For Windows, this target doesn't really build anything, + # everything is build by buildall script later. + if self.platform == 'windows': + return [] + else: + return ['grpc_csharp_ext'] def make_options(self): - return self._make_options; + if self.platform == 'mac': + # On Mac, official distribution of mono is 32bit. + return ['CFLAGS=-arch i386', 'LDFLAGS=-arch i386'] + else: + return [] def build_steps(self): if self.platform == 'windows': - return [[_windows_build_bat(self.args.compiler), - 'src/csharp/Grpc.sln', - '/p:Configuration=%s' % _MSBUILD_CONFIG[self.config.build_config]]] + return [['src\\csharp\\buildall.bat']] else: return [['tools/run_tests/build_csharp.sh']] diff --git a/vsprojects/build_vs2010.bat b/vsprojects/build_vs2010.bat index 1bc3c86a92..64b0ed5d3f 100644 --- a/vsprojects/build_vs2010.bat +++ b/vsprojects/build_vs2010.bat @@ -1,5 +1,5 @@ @rem Convenience wrapper that runs specified gRPC target using msbuild -@rem Usage: build_vs2010.bat TARGET_NAME +@rem Usage: build.bat TARGET_NAME setlocal @rem Set VS variables (uses Visual Studio 2010) diff --git a/vsprojects/build_vs2013.bat b/vsprojects/build_vs2013.bat index 82c0a3ad82..be3caa9298 100644 --- a/vsprojects/build_vs2013.bat +++ b/vsprojects/build_vs2013.bat @@ -1,5 +1,5 @@ @rem Convenience wrapper that runs specified gRPC target using msbuild -@rem Usage: build_vs2013.bat TARGET_NAME +@rem Usage: build.bat TARGET_NAME setlocal @rem Set VS variables (uses Visual Studio 2013) diff --git a/vsprojects/build_vs2015.bat b/vsprojects/build_vs2015.bat index c6e1b433a3..50485a30f3 100644 --- a/vsprojects/build_vs2015.bat +++ b/vsprojects/build_vs2015.bat @@ -1,5 +1,5 @@ @rem Convenience wrapper that runs specified gRPC target using msbuild -@rem Usage: build_vs2015.bat TARGET_NAME +@rem Usage: build.bat TARGET_NAME setlocal @rem Set VS variables (uses Visual Studio 2015) |