Skip to content

Conversation

@pranavk
Copy link
Contributor

@pranavk pranavk commented Nov 5, 2024

No description provided.

@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Nov 5, 2024
@pranavk pranavk merged commit 2d2371d into llvm:main Nov 5, 2024
8 checks passed
@llvmbot
Copy link
Member

llvmbot commented Nov 5, 2024

@llvm/pr-subscribers-libc

Author: Pranav Kant (pranavk)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/114917.diff

3 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+31)
  • (modified) utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel (+8)
  • (modified) utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl (+4)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 7acd34ff50fa6e..c9a338a016bd23 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -197,6 +197,30 @@ libc_support_library(
 
 ############################ Type Proxy Header Files ###########################
 
+libc_support_library(
+    name = "func_aligned_alloc",
+    hdrs = ["hdr/func/aligned_alloc.h"],
+    deps = [":hdr_stdlib_overlay"],
+)
+
+libc_support_library(
+    name = "func_free",
+    hdrs = ["hdr/func/free.h"],
+    deps = [":hdr_stdlib_overlay"],
+)
+
+libc_support_library(
+    name = "func_malloc",
+    hdrs = ["hdr/func/malloc.h"],
+    deps = [":hdr_stdlib_overlay"],
+)
+
+libc_support_library(
+    name = "func_realloc",
+    hdrs = ["hdr/func/realloc.h"],
+    deps = [":hdr_stdlib_overlay"],
+)
+
 libc_support_library(
     name = "types_clockid_t",
     hdrs = ["hdr/types/clockid_t.h"],
@@ -503,6 +527,9 @@ libc_support_library(
     deps = [
         ":__support_common",
         ":__support_macros_properties_os",
+        ":func_aligned_alloc",
+        ":func_free",
+        ":func_malloc"
     ],
 )
 
@@ -837,6 +864,10 @@ libc_support_library(
         ":hdr_stdio_macros",
         ":hdr_stdio_overlay",
         ":types_off_t",
+        ":func_aligned_alloc",
+        ":func_free",
+        ":func_malloc",
+        ":func_realloc",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
index 3e130cd9dc6f08..f387741e95d8bd 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
@@ -22,6 +22,10 @@ libc_support_library(
         "//libc:__support_macros_properties_types",
         "//libc:__support_osutil_io",
         "//libc:__support_uint128",
+        "//libc:func_aligned_alloc",
+        "//libc:func_free",
+        "//libc:func_malloc",
+        "//libc:func_realloc",
     ],
 )
 
@@ -61,6 +65,10 @@ libc_support_library(
         "//libc:errno",
         "//libc:llvm_libc_macros_stdfix_macros",
         "//llvm:Support",
+        "//libc:func_aligned_alloc",
+        "//libc:func_free",
+        "//libc:func_malloc",
+        "//libc:func_realloc",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl
index 7cb30739f1e9c0..4b44b28ea98764 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl
@@ -35,6 +35,10 @@ def libc_test(name, srcs, libc_function_deps = [], copts = [], deps = [], local_
         deps = [libc_internal_target(d) for d in all_function_deps] + [
             "//libc/test/UnitTest:LibcUnitTest",
             "//libc:__support_macros_config",
+            "//libc:func_aligned_alloc",
+            "//libc:func_free",
+            "//libc:func_malloc",
+            "//libc:func_realloc",
         ] + deps,
         copts = copts + libc_common_copts(),
         linkstatic = 1,

PhilippRados pushed a commit to PhilippRados/llvm-project that referenced this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel "Peripheral" support tier build system: utils/bazel libc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants