Skip to content

Commit

Permalink
chore: use env for ecsact/codgen paths
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Mar 22, 2024
1 parent e4823f7 commit 8b9b3ed
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.1.1
4 changes: 4 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ cc_test(
"test.ecsact",
":test_codegen_plugin",
],
env = {
"TEST_ECSACT_FILE_PATH": "$(rootpath test.ecsact)",
"TEST_CODEGEN_PLUGIN_PATH": "$(rootpath :test_codegen_plugin)",
},
deps = [
"@ecsact_interpret",
"@bazel_tools//tools/cpp/runfiles",
Expand Down
6 changes: 2 additions & 4 deletions test/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module(name = "ecsact_cli_test")

bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_ecsact", version = "0.4.9")
bazel_dep(name = "ecsact_codegen", version = "0.1.3")
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 = "0.10.3")
bazel_dep(name = "toolchains_llvm", version = "1.0.0")
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.14.0")
bazel_dep(name = "ecsact_cli")
Expand All @@ -31,7 +29,7 @@ git_override(
)

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

use_repo(llvm, "llvm_toolchain")
register_toolchains("@llvm_toolchain//:all")
Loading

0 comments on commit 8b9b3ed

Please sign in to comment.