-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion]How to elegantly implement ALLSYMS feat in CMake build #11875
Comments
hi @xiaoxiang781216 @anchao @raiden00pl @acassis |
How about adding multiple execution targets?
and update |
Okay let me give it a try |
This plan is perfect, and much better than what I designed before, 👍 |
I planning to add ALLSYMS feature in CMake build system,
there is a issue I encountered and I hope to discuss it with you all.
Since we need to complete the final linking FIRST and then use the linked ELF to generate the symbol table.
nuttx/arch/sim/src/Makefile
Lines 354 to 365 in 53aef8e
nuttx/arch/sim/src/Makefile
Lines 385 to 395 in 53aef8e
this means:
allsyms.c
is must generated after nuttx elf linkingthis will cause problems when using CMake,
because we cannot add
dependency
to atarget
, and thisdependency
also depends on thistarget
at the same time.this creates circular dependency issues.
The solution I'm currently thinking of is this:
It looks a bit like this
What I doubt is whether it is reasonable to run
cmake --build
during the cmake call ?although it will ONLY re-execute the action of generating allsyms.o
Is there a better way to solve this problem that I don't know of ?
The text was updated successfully, but these errors were encountered: