7 years, 7 months ago.

mbed os build options

How can we build for example, only our application source files with an option and not the rest of the project?, for example

./project/ /mbed-os/ /source/ only this one should be built with an extra option

1 Answer

7 years, 7 months ago.

You can't. The profiles are applied to entire application. I would like to know more about your use case.

My aim is to integrate gprof analyzer to my project, but I don't want to analyze the whole project, I juste want to profile my source directory. I did succeed to compile my source directory alone with -pg option by modifying the build script, the gcc.py exactly and add the option for gprof. If I try to compile the whole project, gprof source code will be compiled with -pg option, which means gprof will profile itself, this causes an infinite loop.

posted by abdou sen 31 Mar 2017