diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 7acd34ff50fa6..c9a338a016bd2 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 3e130cd9dc6f0..f387741e95d8b 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 7cb30739f1e9c..4b44b28ea9876 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,