mirror of https://github.com/grpc/grpc.git
[Build] Use -msse2 option only for 32-bit Intel (#38024)
This might not be needed? (From https://github.com/grpc/grpc/issues/37976)
- Boringssl commit requiring -msse2: 56d3ad9d23 (diff-f628d148f94bbab9e22a1ad426ccd94311f1fb87bbe5cc533cb85aee18b07a20R248)
- gRPC change to add -msse2 https://github.com/grpc/grpc/pull/36089
---
Answer to the quesiton above is yes; The -msse2 option remains necessary for gRPC on i686 due to BoringSSL's requirements. However, the existing CMake condition for this option was too broad, potentially including ARM architectures where SSE2 isn't supported, leading to compilation errors. I've refined the condition to specifically target 32-bit x86 architectures.
Furthermore, to ensure accurate architecture detection within our dockerized tests, I've configured x86 tests to utilize the linux32 command. This ensures that uname -a correctly reports i686, allowing gRPC's CMake to identify the architecture and apply the -msse2 option as needed.
It's important to note that RBE overrides the default entrypoint, so RBE-based tests must explicitly invoke linux32 even if the Docker image already has it set.
Fixes https://github.com/grpc/grpc/issues/37976
Closes #38024
PiperOrigin-RevId: 693026079
pull/37136/head
parent
cb57a0496c
commit
574b19ec31
9 changed files with 25 additions and 10 deletions
@ -1 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_debian11_x86:75a2427fa130db1a68fdbe0f4ae391e57b77504f@sha256:3f505ad99e52a4b3337fedb413e883bc8e5c1d9c089299c34002b89e01254d3b |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_debian11_x86:2394059ad8097ad28f11e24d81459e157c8d219b@sha256:43d6e6d97740a8f989024939b5507ed45071d00171eb68e1fbf101a9352860b1 |
Loading…
Reference in new issue