[PATCH] D115416: [lld-macho] Make writing map file asynchronous
Vincent Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 00:26:02 PST 2022
thevinster added a comment.
I
================
Comment at: lld/MachO/Writer.cpp:1111
+ threadFutures.emplace_back(threadPool.async(
+ [&](size_t i) { hashes[i] = xxHash64(chunks[i]); }, i));
+ for (std::shared_future<void> &future : threadFutures)
----------------
crownyanguan wrote:
> This change will lead build failure in windows, like this:
> W:\ll_1074497988\20211217_000000\llvm\lld\MachO\Writer.cpp(1111): error C2365: 'i': redefinition; previous definition was 'data variable'
> W:\ll_1074497988\20211217_000000\llvm\lld\MachO\Writer.cpp(1109): note: see declaration of 'i'
> c:/Program files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/include\functional(1914): fatal error C1060: compiler is out of heap space
Thanks for flagging! I don't have a windows machine, but https://reviews.llvm.org/rG7a161eb43b280a6194fef5b65a81ef59921ebf02 should solve the shadowing error. I'm not sure why this would be causing heap issues but could you try re-running your build again and see if it still reproduces?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115416/new/
https://reviews.llvm.org/D115416
More information about the llvm-commits
mailing list