summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
index 83dff3fbd56a..2007d1219b7c 100644
--- a/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
@@ -65,6 +65,7 @@ def libc_function(
**kwargs: Other attributes relevant for a cc_library. For example, deps.
"""
deps = deps or []
+
# We use the explicit equals pattern here because append and += mutate the
# original list, where this creates a new list and stores it in deps.
deps = deps + [LIBC_ROOT_TARGET]