From 545566cb0cfca8f3c5a020444da779660b1c034c Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Wed, 17 Sep 2025 18:24:21 -0700 Subject: [PATCH] meta: Add macos support to build file Signed-off-by: Ethan Mahintorabi --- BUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BUILD b/BUILD index a3bfa0b1..e962e3eb 100644 --- a/BUILD +++ b/BUILD @@ -387,7 +387,10 @@ cc_library( "util", "verilog", ], - textual_hdrs = ["util/MachineLinux.cc"], + textual_hdrs = select({ + "@platforms//os:linux": ["util/MachineLinux.cc"], + "@platforms//os:macos": ["util/MachineApple.cc"], + }), visibility = ["//:__subpackages__"], deps = [ "@cudd",