Skip to content

Commit

Permalink
chore: llvm dev dep
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Mar 22, 2024
1 parent cfefe3f commit 4e2700b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 22 deletions.
7 changes: 7 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bazel_dep(name = "magic_enum", version = "0.9.3")
bazel_dep(name = "docopt.cpp", version = "0.6.2")
bazel_dep(name = "boost.process", version = "1.83.0.bzl.2")
bazel_dep(name = "boost.algorithm", version = "1.83.0.bzl.1")
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
bazel_dep(name = "yaml-cpp")

Expand All @@ -32,3 +33,9 @@ git_override(
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",
)

llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(llvm_version = "17.0.6")

use_repo(llvm, "llvm_toolchain")
register_toolchains("@llvm_toolchain//:all", dev_dependency = True)
12 changes: 7 additions & 5 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@ecsact_cli//bazel:copts.bzl", "copts")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")

Expand Down Expand Up @@ -41,10 +40,3 @@ cc_test(
"@googletest//:gtest_main",
],
)

build_test(
name = "build",
targets = [
"@ecsact_cli",
],
)
6 changes: 3 additions & 3 deletions test/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bazel_dep(name = "boost.dll", version = "1.83.0.bzl.2")
bazel_dep(name = "boost.process", version = "1.83.0.bzl.2")
bazel_dep(name = "ecsact_runtime", version = "0.5.1")
bazel_dep(name = "ecsact_interpret", version = "0.5.0")
bazel_dep(name = "toolchains_llvm", version = "1.0.0")
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.14.0")
bazel_dep(name = "ecsact_cli")
Expand All @@ -28,8 +28,8 @@ git_override(
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",
)

llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(llvm_version = "17.0.6")

use_repo(llvm, "llvm_toolchain")
register_toolchains("@llvm_toolchain//:all")
register_toolchains("@llvm_toolchain//:all", dev_dependency = True)
14 changes: 8 additions & 6 deletions test/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e2700b

Please sign in to comment.