[PATCH] D149119: [CMake] Use llvm-nm to extract symbols for staged LTO builds on Windows
Igor Kudrin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 24 20:52:40 PDT 2023
ikudrin created this revision.
ikudrin added reviewers: john.brawn, daltenty, jsji, simon_tatham, tmatheson, mstorsjo, phosek.
ikudrin added projects: LLVM, clang.
Herald added subscribers: ekilmer, inglorion.
Herald added a project: All.
ikudrin requested review of this revision.
As for now, `extract_symbols.py` uses a predefined set of tools, none of which can read bitcode files. The patch makes it possible to override the used tool and passes a fresh built `llvm-nm` for that for multi-staged LTO builds. This fixes building plugins with LTO builds and subsequently makes `clang/test/Frontend/plugin-*` tests pass.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149119
Files:
clang/CMakeLists.txt
llvm/utils/extract_symbols.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149119.516612.patch
Type: text/x-patch
Size: 9450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230425/da63ef67/attachment.bin>
More information about the cfe-commits
mailing list