From b30136c8b9a28de595c653631d19074c554c987b Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Mon, 16 Feb 2026 18:28:28 +0100 Subject: [PATCH] bazel/macos: migrate from rules_hdl based tcl to bazel repository During the work on the MacOS version I figured out that the tcl version from rules_hdl is not compatible. This patch migrates to the bazel repository version of tcl and adds a machine file. Signed-off-by: Friedrich Beckmann --- BUILD | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/BUILD b/BUILD index 0942cb7e4..2cdaf5187 100644 --- a/BUILD +++ b/BUILD @@ -296,7 +296,7 @@ cc_binary( deps = [ ":opensta_lib", "@rules_cc//cc/runfiles", - "@tk_tcl//:tcl", + "@tcl_lang//:tcl", ], ) @@ -390,14 +390,17 @@ cc_library( "util", "verilog", ], - textual_hdrs = ["util/MachineLinux.cc"], + textual_hdrs = select({ + "@platforms//os:osx": ["util/MachineApple.cc"], + "//conditions:default": ["util/MachineLinux.cc"], + }), visibility = ["//:__subpackages__"], deps = [ "@cudd", "@eigen", "@openmp", "@rules_flex//flex:current_flex_toolchain", - "@tk_tcl//:tcl", + "@tcl_lang//:tcl", "@zlib", ], )