[llvm] fix error when compile as sub proj (PR #111578)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 22:59:26 PDT 2024
https://github.com/yc-gao updated https://github.com/llvm/llvm-project/pull/111578
>From 5e15fd7c6a5d0a8653366b9de85b4bf3cf179a31 Mon Sep 17 00:00:00 2001
From: Yinchao <yc_X at outlook.com>
Date: Wed, 9 Oct 2024 03:29:40 +0800
Subject: [PATCH] fix error when compile as sub proj
---
utils/bazel/configure.bzl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/bazel/configure.bzl b/utils/bazel/configure.bzl
index 717b86d7d6e8a2..c7ecce021f769c 100644
--- a/utils/bazel/configure.bzl
+++ b/utils/bazel/configure.bzl
@@ -80,7 +80,7 @@ def _extract_cmake_settings(repository_ctx, llvm_cmake):
# It would be easier to use external commands like sed(1) and python.
# For portability, the parser should run on Starlark.
- llvm_cmake_path = repository_ctx.path(Label("//:" + llvm_cmake))
+ llvm_cmake_path = repository_ctx.path(Label("@llvm-raw//:" + llvm_cmake))
for line in repository_ctx.read(llvm_cmake_path).splitlines():
# Extract "set ( FOO bar ... "
setfoo = line.partition("(")
More information about the llvm-commits
mailing list