bazel/macos: use MachineApple.cc on MacOS

On MacOS the MachineApple.cc must be used instead of
MachineLinux.cc. I added a select statement.

Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
This commit is contained in:
Friedrich Beckmann 2026-02-16 18:28:28 +01:00
parent 7937b647b6
commit 72c4fc49cb
1 changed files with 4 additions and 1 deletions

5
BUILD
View File

@ -390,7 +390,10 @@ 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",