Skip to content

Commit ff7a9bc

Browse files
committed
build: add memalignment to CMakeLists.txt
1 parent 931115f commit ff7a9bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

libc/src/stdlib/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ if(NOT LIBC_TARGET_OS_IS_BAREMETAL AND NOT LIBC_TARGET_OS_IS_GPU)
385385
DEPENDS
386386
${SCUDO_DEPS}
387387
)
388+
add_entrypoint_external(
389+
memalignment
390+
DEPENDS
391+
${SCUDO_DEPS}
392+
)
388393
add_entrypoint_external(
389394
calloc
390395
DEPENDS
@@ -414,6 +419,9 @@ if(NOT LIBC_TARGET_OS_IS_BAREMETAL AND NOT LIBC_TARGET_OS_IS_GPU)
414419
add_entrypoint_external(
415420
malloc
416421
)
422+
add_entrypoint_external(
423+
memalignment
424+
)
417425
add_entrypoint_external(
418426
calloc
419427
)
@@ -524,6 +532,12 @@ if(LIBC_TARGET_OS_IS_BAREMETAL OR LIBC_TARGET_OS_IS_GPU)
524532
DEPENDS
525533
.${LIBC_TARGET_OS}.malloc
526534
)
535+
add_entrypoint_object(
536+
memalignment
537+
ALIAS
538+
DEPENDS
539+
.${LIBC_TARGET_OS}.memalignment
540+
)
527541
add_entrypoint_object(
528542
free
529543
ALIAS

0 commit comments

Comments
 (0)