Skip to content
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

Improve generated Makefile from mbed export -i make_gcc_arm #991

Open
maujim opened this issue Apr 21, 2021 · 0 comments
Open

Improve generated Makefile from mbed export -i make_gcc_arm #991

maujim opened this issue Apr 21, 2021 · 0 comments

Comments

@maujim
Copy link

maujim commented Apr 21, 2021

I have a bit of a strange workflow wherein I use mbed compile to actually generate the code for my application but I need to generate a compilation database (a compile_commands.json file) to be used with clang tools.

To do this, I use mbed export -i make_gcc_arm to generate a Makefile, and then I use https://github.com/rizsotto/Bear to generate the compile_commands.json file. Bear is simply a make wrapper so the command used is just bear -- make.

I typically have to make clean before running the bear command which wipes out the entire ./BUILD directory. This means subsequent mbed compile commands have to be run from scratch. Is it possible to generate the Makefile so that the output directory is something like ./BUILD/make?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant