From 29e1aa0555eb9c00add2bfb49dc9b9715b85400a Mon Sep 17 00:00:00 2001 From: Lasan Mahaliyana Date: Thu, 26 Mar 2026 20:49:27 +0530 Subject: [PATCH] added sepereate cc_library for system clock --- internal/platform/implementation/linux/BUILD | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/internal/platform/implementation/linux/BUILD b/internal/platform/implementation/linux/BUILD index 895c8ece..a3779ab1 100644 --- a/internal/platform/implementation/linux/BUILD +++ b/internal/platform/implementation/linux/BUILD @@ -163,6 +163,22 @@ cc_library( ], ) +cc_library( + name = "system_clock", + srcs = [ + "system_clock.cc", + ], + alwayslink = True, + visibility = [ + "//sharing/linux:__pkg__", + ], + deps = [ + "//internal/platform:base", + "//internal/platform/implementation:types", + "@com_google_absl//absl/time", + ], +) + cc_library( name = "linux", srcs = [ @@ -200,7 +216,6 @@ cc_library( "scheduled_executor.cc", "stream.cc", "submittable_executor.cc", - "system_clock.cc", "thread_pool.cc", "utils.cc", # "wifi_direct.cc", @@ -225,6 +240,7 @@ cc_library( deps = [ ":comm", ":crypto", # build_cleaner: keep + ":system_clock", ":types", "//internal/flags:nearby_flags", "//internal/platform:base",