[llvm] [bazel] Fix error: 'maybe' is not defined (PR #97592)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 08:43:31 PDT 2024
https://github.com/kirillpyasecky created https://github.com/llvm/llvm-project/pull/97592
Sorry for two pr's with same problem, i should commit it in one pr
>From 328b2df200cf8eb5c3cae920f8b1e29d4e594549 Mon Sep 17 00:00:00 2001
From: Kirill <77356738+kirillpyasecky at users.noreply.github.com>
Date: Wed, 26 Jun 2024 11:21:21 +0300
Subject: [PATCH 1/2] [bazel] fix error: name 'http_archive' is not defined
---
utils/bazel/examples/submodule/WORKSPACE | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utils/bazel/examples/submodule/WORKSPACE b/utils/bazel/examples/submodule/WORKSPACE
index e8eff85ffda52..3fcab581897a5 100644
--- a/utils/bazel/examples/submodule/WORKSPACE
+++ b/utils/bazel/examples/submodule/WORKSPACE
@@ -8,6 +8,8 @@ workspace(name = "submodule_example")
SKYLIB_VERSION = "1.0.3"
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
http_archive(
name = "bazel_skylib",
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
>From 18f91fb815e207e1a96e99491aae0a7b1dcd83cd Mon Sep 17 00:00:00 2001
From: Kirill <77356738+kirillpyasecky at users.noreply.github.com>
Date: Wed, 3 Jul 2024 18:42:18 +0300
Subject: [PATCH 2/2] [bazel] fix error: 'maybe is not defined
---
utils/bazel/examples/submodule/WORKSPACE | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utils/bazel/examples/submodule/WORKSPACE b/utils/bazel/examples/submodule/WORKSPACE
index 3fcab581897a5..d6f0a5db91c99 100644
--- a/utils/bazel/examples/submodule/WORKSPACE
+++ b/utils/bazel/examples/submodule/WORKSPACE
@@ -30,6 +30,8 @@ load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")
llvm_configure(name = "llvm-project")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
maybe(
http_archive,
name = "llvm_zlib",
More information about the llvm-commits
mailing list