Skip to content

Improve generated Makefile from mbed export -i make_gcc_arm #991

Description

@maujim

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions