Some architecture-specific function overrides (for example, i386/ashrdi3.S)
duplicate generic functions (in that case, ashrdi3.c). Prevent duplicate definitions
by filtering out the generic files before compiling.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
cmake/Modules/CompilerRTUtils.cmake | ||
---|---|---|
290 ↗ | (On Diff #112743) | Seems like you are re-implementing darwin_filter_builtin_sources. Can you rename and reuse that instead? |
LGTM! Thanks for the follow up cleanup work :-). Id say give @beanz a day or so to look at it, but this is mostly just a function renaming, and the new codepaths are okay.
Thanks. Verified that this patch doesn't cause any files to be rebuilt when targeting macOS.
compiler-rt/trunk/lib/builtins/CMakeLists.txt | ||
---|---|---|
500 | Didn't this do the same thing already? What did this down here not catch? D36555, which went out to review before this change but landed later, added x86_ARCH_SOURCES which contains floatundixf.c which has a specialized implementation. x86_ARCH_SOURCES currently doesn't go through filter_builtin_sources() (due to it not yet being in the tree when this patch landed), but due to this loop down here it appears only once anyways. So now I'm confused what exactly the effect of this patch here was. |
Didn't this do the same thing already? What did this down here not catch?
D36555, which went out to review before this change but landed later, added x86_ARCH_SOURCES which contains floatundixf.c which has a specialized implementation. x86_ARCH_SOURCES currently doesn't go through filter_builtin_sources() (due to it not yet being in the tree when this patch landed), but due to this loop down here it appears only once anyways.
So now I'm confused what exactly the effect of this patch here was.