[libc-commits] [PATCH] D106502: [libc] add option to use SCUDO as the allocator
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Jul 21 16:35:46 PDT 2021
michaelrj added inline comments.
================
Comment at: libc/cmake/modules/LLVMLibCLibraryRules.cmake:81
+ foreach(dep IN LISTS ENTRYPOINT_LIBRARY_EXT_DEPS)
+ list(APPEND objects $<TARGET_OBJECTS:${dep}>)
+ endforeach(dep)
----------------
sivachandra wrote:
> Before we extract the objects from the `dep`, we should verify that the `dep` is an object library. Else, report a failure. One way could be to use the `TYPE` property to decide if the `dep` is an `OBJECT_LIBRARY`: https://cmake.org/cmake/help/v3.13/prop_tgt/TYPE.html
>
> Most of this is already done in the code above from lines 65 to 78. So, we might just be able make use of the `DEPENDS` option with small adjustments.
We can't check the properties of the `dep` since it may not be defined yet. The libc cmake scripts are evaluated before the compiler-rt scripts. This means we can't check the type of anything in `EXT_DEPS`, which means that combining `EXT_DEPS` and `DEPENDS` wouldn't work.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106502/new/
https://reviews.llvm.org/D106502
More information about the libc-commits
mailing list