forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move projects that are available already in https://registry.bazel.build/ from from load_external to MODULE.bazel. * This is not complete: there are probably more steps to simplify and clean-up after the first submit. * Switching to bzlmod broke making the compilation-db as the action hooks don't seem to work anymore ( xls/dev_tools//make-compilation-db.sh ). The used com_grail_bazel_compdb is not maintained anymore, so this needs to be updated to something more modern (hedronvision?). Since this is not actively needed in daily development (and I am the only one really using it), postponed for later. * Clean out things not needed anymore in dependency_support/$(various-dirs) Issues: google#931 Also, needed to make Python rules to work well with --incompatible_default_to_explicit_init_py (bazelbuild/bazel#10076)
- Loading branch information
Showing
16 changed files
with
72 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ user.bazelrc | |
.vscode | ||
.cache | ||
docs/ | ||
MODULE.bazel.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module( | ||
name = "xls", | ||
repo_name = "com_google_xls", | ||
) | ||
|
||
# Compiler toolchain | ||
bazel_dep(name = "toolchains_llvm", version = "1.1.2") | ||
|
||
# Configure and register the toolchain. | ||
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") | ||
llvm.toolchain( | ||
llvm_version = "17.0.6", | ||
) | ||
use_repo(llvm, "llvm_toolchain") | ||
|
||
register_toolchains("@llvm_toolchain//:all") | ||
|
||
# | ||
bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") | ||
bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "com_google_absl_py") | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "boringssl", version = "0.20241209.0") | ||
bazel_dep(name = "cppitertools", version = "2.1") | ||
bazel_dep(name = "google_benchmark", version = "1.8.5", repo_name = "com_google_benchmark") | ||
bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a", repo_name = "com_google_googleapis") | ||
bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") | ||
bazel_dep(name = "grpc", version = "1.68.0", repo_name = "com_github_grpc_grpc") | ||
bazel_dep(name = "nlohmann_json", version = "3.11.3.bcr.1", repo_name="jsonhpp") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "protobuf", version = "29.1", repo_name = "com_google_protobuf") | ||
bazel_dep(name = "re2", version = "2024-07-02.bcr.1", repo_name = "com_googlesource_code_re2") | ||
bazel_dep(name = "riegeli", version = "0.0.0-20240927-cdfb25a", repo_name = "com_google_riegeli") | ||
bazel_dep(name = "rules_cc", version = "0.1.0") | ||
bazel_dep(name = "rules_license", version = "1.0.0") | ||
bazel_dep(name = "rules_pkg", version = "1.0.1") | ||
|
||
# Not all external projects we directly need are available yet. | ||
# This how to find what we use for further work on this file: | ||
# find xls -name BUILD -o -name "*.bzl" | xargs sed 's/.*"\(@[_a-z0-9]*\).*/\1/p;d' | sort -u | ||
# Once added here, remove from the {load,initialize}_external.bzl. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
dependency_support/com_github_grpc_grpc/0001-Add-absl-status-to-deps.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.