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
78 additions
and
460 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ xls_clang-tidy.out | |
user.bazelrc | ||
.vscode | ||
.cache | ||
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") | ||
|
||
# Adding grpc first, it messes with python dependencies, so get this done first. | ||
bazel_dep(name = "grpc", version = "1.66.0", repo_name = "com_github_grpc_grpc") | ||
|
||
# | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "rules_cc", version = "0.0.9") | ||
bazel_dep(name = "rules_license", version = "0.0.8") | ||
bazel_dep(name = "rules_pkg", version = "1.0.1") | ||
bazel_dep(name = "abseil-cpp", version = "20240116.2", repo_name = "com_google_absl") | ||
bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "com_google_absl_py") | ||
bazel_dep(name = "google_benchmark", version = "1.8.5", repo_name = "com_google_benchmark") | ||
bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") | ||
bazel_dep(name = "protobuf", version = "28.0-rc2", repo_name = "com_google_protobuf") | ||
bazel_dep(name = "riegeli", version = "0.0.0-20240606-973b6f0", repo_name = "com_google_riegeli") | ||
bazel_dep(name = "re2", version = "2024-07-02", repo_name = "com_googlesource_code_re2") | ||
bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") | ||
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "jsonhpp") | ||
bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3") | ||
|
||
# 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.