From 58cb318696950cbdfe90800c9fe38bf12d6fe510 Mon Sep 17 00:00:00 2001 From: Chris Cummins Date: Tue, 19 Apr 2022 15:50:51 -0700 Subject: [PATCH] Add missing cmake dependencies. --- compiler_gym/service/BUILD | 2 +- compiler_gym/service/CMakeLists.txt | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/compiler_gym/service/BUILD b/compiler_gym/service/BUILD index 1861711862..b61a90e03a 100644 --- a/compiler_gym/service/BUILD +++ b/compiler_gym/service/BUILD @@ -13,7 +13,7 @@ py_library( ":compilation_session", ":connection", # TODO(github.com/facebookresearch/CompilerGym/pull/633): - # add this after circular dependencies are resolved + # add this after circular dependencies are resolved: # ":client_service_compiler_env", ":connection_pool", "//compiler_gym/service/proto", diff --git a/compiler_gym/service/CMakeLists.txt b/compiler_gym/service/CMakeLists.txt index dc27917605..56ab57fd97 100644 --- a/compiler_gym/service/CMakeLists.txt +++ b/compiler_gym/service/CMakeLists.txt @@ -14,8 +14,9 @@ cg_py_library( ::compilation_session ::connection # TODO(github.com/facebookresearch/CompilerGym/pull/633): - # add this after circular dependencies are resolved - #::client_service_compiler_env + # add this after circular dependencies are resolved: + # ::client_service_compiler_env + ::connection_pool compiler_gym::service::proto::proto PUBLIC ) @@ -73,3 +74,13 @@ cg_py_library( compiler_gym::views::views PUBLIC ) + +cg_py_library( + NAME + connection_pool + SRCS + "connection_pool.py" + DEPS + ::connection + PUBLIC +)