Skip to content

Commit 882bae9

Browse files
authored
[libc][bazel] Make top section of BUILD.bazel files more uniform. (llvm#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.
1 parent f9ee5ce commit 882bae9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ load("//libc:libc_build_rules.bzl", "libc_release_library")
77

88
package(default_visibility = ["//visibility:public"])
99

10+
licenses(["notice"])
11+
1012
exports_files(["libc_test_rules.bzl"])
1113

1214
# Smoke test verifying libc_release_library macro functionality.

utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
load("//libc/test:libc_test_rules.bzl", "libc_test")
88

9+
package(default_visibility = ["//visibility:public"])
10+
911
licenses(["notice"])
1012

1113
libc_test(

utils/bazel/llvm-project-overlay/libc/test/src/complex/BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2+
# See https://llvm.org/LICENSE.txt for license information.
3+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+
# Tests for LLVM libc complex.h functions.
6+
17
load("//libc/test:libc_test_rules.bzl", "libc_test")
28

9+
package(default_visibility = ["//visibility:public"])
10+
11+
licenses(["notice"])
12+
313
[
414
libc_test(
515
name = func_name + "_test",

0 commit comments

Comments
 (0)