From 0b67dfec9b212cb9d6e863c08a22153c05d747da Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 4 Oct 2018 11:17:29 +0200 Subject: disable assembly optimizations for linux x86 --- tools/run_tests/artifacts/artifact_targets.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/run_tests/artifacts/artifact_targets.py b/tools/run_tests/artifacts/artifact_targets.py index b2e9f4cc9f..6a21810247 100644 --- a/tools/run_tests/artifacts/artifact_targets.py +++ b/tools/run_tests/artifacts/artifact_targets.py @@ -249,10 +249,21 @@ class CSharpExtArtifact: use_workspace=True) else: if self.platform == 'linux': + cmake_arch_option = '' # x64 is the default architecture + if self.arch == 'x86': + # TODO(jtattermusch): more work needed to enable + # boringssl assembly optimizations for 32-bit linux. + # Problem: currently we are building the artifact under + # 32-bit docker image, but CMAKE_SYSTEM_PROCESSOR is still + # set to x86_64, so the resulting boringssl binary + # would have undefined symbols. + cmake_arch_option = '-DOPENSSL_NO_ASM=ON' return create_docker_jobspec( self.name, 'tools/dockerfile/grpc_artifact_linux_%s' % self.arch, - 'tools/run_tests/artifacts/build_artifact_csharp.sh') + 'tools/run_tests/artifacts/build_artifact_csharp.sh', + environ={'CMAKE_ARCH_OPTION': cmake_arch_option} + ) else: cmake_arch_option = '' # x64 is the default architecture if self.arch == 'x86': -- cgit v1.2.3