diff options
author | lntue <35648136+lntue@users.noreply.github.com> | 2024-06-21 22:42:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 22:42:07 -0400 |
commit | 38458144bf74417aa36bdd468ce3b3d482cdaf99 (patch) | |
tree | 249899397674e992f619dc716e707f985e4a9a61 /libc/src | |
parent | a41a46c665ffb50f129daadc8c7b081ddf0b1e37 (diff) | |
download | llvm-38458144bf74417aa36bdd468ce3b3d482cdaf99.zip llvm-38458144bf74417aa36bdd468ce3b3d482cdaf99.tar.gz llvm-38458144bf74417aa36bdd468ce3b3d482cdaf99.tar.bz2 |
[libc][stdlib] Fix skipped libc.src.stdlib.freelist_malloc target for baremetal. (#96372)
Downstream build issue reported:
https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8744479865106393873/overview
Diffstat (limited to 'libc/src')
-rw-r--r-- | libc/src/stdlib/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/src/stdlib/CMakeLists.txt b/libc/src/stdlib/CMakeLists.txt index 7d99fdf3..a5d5ac5 100644 --- a/libc/src/stdlib/CMakeLists.txt +++ b/libc/src/stdlib/CMakeLists.txt @@ -392,7 +392,8 @@ else() COMPILE_OPTIONS -DLIBC_FREELIST_MALLOC_SIZE=${LIBC_CONF_FREELIST_MALLOC_BUFFER_SIZE} ) - if(LIBC_TARGET_OS_IS_BAREMETAL) + get_target_property(freelist_malloc_is_skipped libc.src.stdlib.freelist_malloc "SKIPPED") + if(LIBC_TARGET_OS_IS_BAREMETAL AND NOT freelist_malloc_is_skipped) add_entrypoint_object( malloc ALIAS |