[llvm] Fix error: name 'maybe' is not defined (PR #96741)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 23:00:59 PDT 2024


https://github.com/kirillpyasecky updated https://github.com/llvm/llvm-project/pull/96741

>From 6ffb05f3edbb732b6ade445170346c205955733c Mon Sep 17 00:00:00 2001
From: Kirill <77356738+kirillpyasecky at users.noreply.github.com>
Date: Wed, 26 Jun 2024 11:08:04 +0300
Subject: [PATCH] Fix error: name 'maybe' is not defined

---
 utils/bazel/examples/http_archive/WORKSPACE | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/bazel/examples/http_archive/WORKSPACE b/utils/bazel/examples/http_archive/WORKSPACE
index efc3a083e059d..94dffa7fa63ae 100644
--- a/utils/bazel/examples/http_archive/WORKSPACE
+++ b/utils/bazel/examples/http_archive/WORKSPACE
@@ -39,6 +39,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