From aeac7f4203a9a80d21d27a385fbca8ecfe6ec6e0 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 31 Jan 2023 00:22:28 +0000 Subject: [PATCH] [bazel] Fix gloo.BUILD (#92858) After the recent gloo submodule bump, bazel build that uses gloo needs a slight update. Tested that now I was able to build :torch with gloo (on our internal build) Pull Request resolved: https://github.com/pytorch/pytorch/pull/92858 Approved by: https://github.com/dagitses, https://github.com/malfet --- third_party/gloo.BUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third_party/gloo.BUILD b/third_party/gloo.BUILD index b38da098b461..daa17f15e765 100644 --- a/third_party/gloo.BUILD +++ b/third_party/gloo.BUILD @@ -20,6 +20,8 @@ template_rule( "cmakedefine01 GLOO_USE_MPI": "define GLOO_USE_MPI 0", "cmakedefine01 GLOO_USE_AVX": "define GLOO_USE_AVX 0", "cmakedefine01 GLOO_USE_LIBUV": "define GLOO_USE_LIBUV 0", + # The `GLOO_HAVE_TRANSPORT_TCP_TLS` line should go above the `GLOO_HAVE_TRANSPORT_TCP` in order to properly substitute the template. + "cmakedefine01 GLOO_HAVE_TRANSPORT_TCP_TLS": "define GLOO_HAVE_TRANSPORT_TCP_TLS 1", "cmakedefine01 GLOO_HAVE_TRANSPORT_TCP": "define GLOO_HAVE_TRANSPORT_TCP 1", "cmakedefine01 GLOO_HAVE_TRANSPORT_IBVERBS": "define GLOO_HAVE_TRANSPORT_IBVERBS 0", "cmakedefine01 GLOO_HAVE_TRANSPORT_UV": "define GLOO_HAVE_TRANSPORT_UV 0", @@ -35,6 +37,7 @@ cc_library( "gloo/rendezvous/*.h", "gloo/transport/*.h", "gloo/transport/tcp/*.h", + "gloo/transport/tcp/tls/*.h", ], exclude = [ "gloo/rendezvous/redis_store.h",