[llvm] [libc][bazel] Make top section of BUILD.bazel files more uniform. (PR #137689)
Alexey Samsonov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 11:59:29 PDT 2025
https://github.com/vonosmas created https://github.com/llvm/llvm-project/pull/137689
Make sure all BUILD.bazel files under llvm-libc are specifying package-level default_visibility and licenses.
Add top-level license notice and comment to new BUILD.bazel for complex.h functions.
>From 9cecb6055fa15a095d317dd024789cd4a4c06791 Mon Sep 17 00:00:00 2001
From: Alexey Samsonov <vonosmas at gmail.com>
Date: Mon, 28 Apr 2025 11:56:26 -0700
Subject: [PATCH] [libc][bazel] Make top section of BUILD.bazel files more
uniform.
Make sure all BUILD.bazel files under llvm-libc are specifying
package-level default_visibility and licenses.
Add top-level license notice and comment to new BUILD.bazel for
complex.h functions.
---
utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel | 2 ++
.../llvm-project-overlay/libc/test/include/BUILD.bazel | 2 ++
.../libc/test/src/complex/BUILD.bazel | 10 ++++++++++
3 files changed, 14 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel
index ccad771025d9a..c95c5711d8367 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel
@@ -7,6 +7,8 @@ load("//libc:libc_build_rules.bzl", "libc_release_library")
package(default_visibility = ["//visibility:public"])
+licenses(["notice"])
+
exports_files(["libc_test_rules.bzl"])
# Smoke test verifying libc_release_library macro functionality.
diff --git a/utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel
index 361c7c8db6542..51e8424282af0 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel
@@ -6,6 +6,8 @@
load("//libc/test:libc_test_rules.bzl", "libc_test")
+package(default_visibility = ["//visibility:public"])
+
licenses(["notice"])
libc_test(
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/complex/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/complex/BUILD.bazel
index cc3a8d8b4b96a..7802e6f8db6d5 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/complex/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/complex/BUILD.bazel
@@ -1,5 +1,15 @@
+# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+# Tests for LLVM libc complex.h functions.
+
load("//libc/test:libc_test_rules.bzl", "libc_test")
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"])
+
[
libc_test(
name = func_name + "_test",
More information about the llvm-commits
mailing list