From 6b5b92d7ef85d8b47600d430ea68e91e227272b1 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Tue, 28 Nov 2023 22:51:47 -0500 Subject: [PATCH] Convert to bzlmod --- .bazelrc | 2 ++ MODULE.bazel | 0 WORKSPACE | 21 --------------------- main/{BUILD => BUILD.bazel} | 0 4 files changed, 2 insertions(+), 21 deletions(-) create mode 100644 .bazelrc create mode 100644 MODULE.bazel delete mode 100644 WORKSPACE rename main/{BUILD => BUILD.bazel} (100%) diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000..52ace73 --- /dev/null +++ b/.bazelrc @@ -0,0 +1,2 @@ +# Enable Bzlmod for every Bazel command +common --enable_bzlmod \ No newline at end of file diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000..e69de29 diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index 314a00f..0000000 --- a/WORKSPACE +++ /dev/null @@ -1,21 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "aspect_gcc_toolchain", - sha256 = "3341394b1376fb96a87ac3ca01c582f7f18e7dc5e16e8cf40880a31dd7ac0e1e", - strip_prefix = "gcc-toolchain-0.4.2", - urls = [ - "https://github.com/aspect-build/gcc-toolchain/archive/refs/tags/0.4.2.tar.gz", - ], -) - -load("@aspect_gcc_toolchain//toolchain:repositories.bzl", "gcc_toolchain_dependencies") - -gcc_toolchain_dependencies() - -load("@aspect_gcc_toolchain//toolchain:defs.bzl", "gcc_register_toolchain", "ARCHS") - -gcc_register_toolchain( - name = "gcc_toolchain_x86_64", - target_arch = ARCHS.x86_64, -) \ No newline at end of file diff --git a/main/BUILD b/main/BUILD.bazel similarity index 100% rename from main/BUILD rename to main/BUILD.bazel