Skip to content

Commit eb201b3

Browse files
committed
build: correct build entry for memalignment
1 parent 23320f4 commit eb201b3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

libc/src/stdlib/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,16 @@ add_entrypoint_external(
350350
DEPENDS
351351
${SCUDO_DEPS}
352352
)
353+
add_entrypoint_object(
354+
memalignment
355+
SRCS
356+
memalignment.cpp
357+
HDRS
358+
memalignment.h
359+
DEPENDS
360+
libc.src.__support.common
361+
libc.src.__support.CPP.cstddef
362+
)
353363

354364
if(NOT LIBC_TARGET_OS_IS_BAREMETAL AND NOT LIBC_TARGET_OS_IS_GPU)
355365
if(LLVM_LIBC_INCLUDE_SCUDO)
@@ -420,9 +430,6 @@ if(NOT LIBC_TARGET_OS_IS_BAREMETAL AND NOT LIBC_TARGET_OS_IS_GPU)
420430
add_entrypoint_external(
421431
malloc
422432
)
423-
add_entrypoint_external(
424-
memalignment
425-
)
426433
add_entrypoint_external(
427434
calloc
428435
)

libc/src/stdlib/memalignment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define LLVM_LIBC_SRC_STDLIB_MEM_ALIGNMENT_H
1111

1212
#include "src/__support/macros/config.h"
13-
#include <stddef.h>
13+
#include "src/__support/CPP/cstddef.h"
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

0 commit comments

Comments
 (0)