Skip to content

Commit

Permalink
more darwin targets
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Apr 25, 2024
1 parent f4dfb97 commit 5198f99
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deps/ReactantExtra/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,22 @@ platform(
],
)


platform(
name = "darwin_x86_64_2",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:darwin_x86_64",
],
)
platform(
name = "darwin_arm64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:darwin_arm64",
],
)

cc_library(
name = "ReactantExtraLib",
srcs = glob(
Expand Down
3 changes: 3 additions & 0 deletions deps/ReactantExtra/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ load("@enzyme_ad//:workspace.bzl", "JAX_COMMIT", "JAX_SHA256", "ENZYME_COMMIT",

XLA_PATCHES = XLA_PATCHES + [
"""
sed -i.bak0 "s/@tsl\\/\\/tsl:linux_x86_64/@bazel_tools\\/\\/src\\/conditions:linux/g" xla/tsl/mkl/build_defs.bzl
""",
"""
sed -i.bak0 "s/\\\"@onednn\\/\\/:mkl_dnn\\\"//g" xla/tsl/mkl/build_defs.bzl
""",
"""
Expand Down

0 comments on commit 5198f99

Please sign in to comment.