Skip to content

Commit

Permalink
remove setup rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Dec 24, 2024
1 parent 387ef48 commit e7c904a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
23 changes: 22 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# add support for generating compile_commands
load("//third_party/hedron_compile_commands:workspace.bzl", hedron_compile_commands_workspace = "repo", hedron_compile_commands_setup = "setup")
load("//third_party/hedron_compile_commands:workspace.bzl", hedron_compile_commands_workspace = "repo")
hedron_compile_commands_workspace()

load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
load("@hedron_compile_commands//:workspace_setup_transitive.bzl", "hedron_compile_commands_setup_transitive")
load("@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive")
load("@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive_transitive")

hedron_compile_commands_setup()
hedron_compile_commands_setup_transitive()
hedron_compile_commands_setup_transitive_transitive()
hedron_compile_commands_setup_transitive_transitive_transitive()

load("//third_party/jax:workspace.bzl", jax_workspace = "repo")
jax_workspace()
Expand Down Expand Up @@ -45,6 +54,18 @@ llvm_configure(name = "llvm-project", targets = LLVM_TARGETS)
load("@jax//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
flatbuffers()

load("@xla//:workspace4.bzl", "xla_workspace4")
load("@xla//:workspace3.bzl", "xla_workspace3")
load("@xla//:workspace2.bzl", "xla_workspace2")
load("@xla//:workspace1.bzl", "xla_workspace1")
load("@xla//:workspace0.bzl", "xla_workspace0")

xla_workspace4()
xla_workspace3()
xla_workspace2()
xla_workspace1()
xla_workspace0()

load(
"@tsl//third_party/gpus/cuda/hermetic:cuda_json_init_repository.bzl",
"cuda_json_init_repository",
Expand Down
13 changes: 0 additions & 13 deletions third_party/hedron_compile_commands/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,3 @@ def repo():
strip_prefix = "bazel-compile-commands-extractor-4f28899228fb3ad0126897876f147ca15026151e",
# When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..."
)

def setup():
"""Setups compile_commands generation."""

load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
load("@hedron_compile_commands//:workspace_setup_transitive.bzl", "hedron_compile_commands_setup_transitive")
load("@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive")
load("@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive_transitive")

hedron_compile_commands_setup()
hedron_compile_commands_setup_transitive()
hedron_compile_commands_setup_transitive_transitive()
hedron_compile_commands_setup_transitive_transitive_transitive()
12 changes: 0 additions & 12 deletions third_party/xla/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,3 @@ def repo():
urls = ["https://github.com/wsmoses/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)],
patch_cmds = XLA_PATCHES,
)

load("@xla//:workspace4.bzl", "xla_workspace4")
load("@xla//:workspace3.bzl", "xla_workspace3")
load("@xla//:workspace2.bzl", "xla_workspace2")
load("@xla//:workspace1.bzl", "xla_workspace1")
load("@xla//:workspace0.bzl", "xla_workspace0")

xla_workspace4()
xla_workspace3()
xla_workspace2()
xla_workspace1()
xla_workspace0()

0 comments on commit e7c904a

Please sign in to comment.