Skip to content

mbed compile / mbed test: how to compile without clean option ? #344

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

Closed
adustm opened this issue Sep 12, 2016 · 4 comments
Closed

mbed compile / mbed test: how to compile without clean option ? #344

adustm opened this issue Sep 12, 2016 · 4 comments
Labels

Comments

@adustm
Copy link
Member

adustm commented Sep 12, 2016

Hello,
mbed test is always rebuilding the complete mbed os database, as if we were using '-c' option.

Is it the normal behavior ? It takes long time while developping a new feature.
Could you check that or let us know how to avoid it, please ?

Kind regards
Armelle
cc @bcostm @svastm

@screamerbg
Copy link
Contributor

cc @bridadan

@bridadan
Copy link
Contributor

@adustm This is not normal behavior, I can confirm that this is a bug. It was introduced with this PR: https://github.com/ARMmbed/mbed-os/pull/2471/files

It makes it so it removes the mbed_config.h from the OS library build that is shared among all tests. This was to prevent there being multiple mbed_config.h from being in the build (one for the built test, and one for the shared OS library build). However, deleting this file triggers a clean build of the OS since the config state is being reset.

I need to examine this in more detail, but with the introduction of being able to specify app config on the command line we may be able to make smarter decisions about when to do a clean build.

@screamerbg
Copy link
Contributor

@adustm The PR @bridadan mentioned is now merged. Can you confirm that this is resolved?

@screamerbg
Copy link
Contributor

@adustm Closing as there is no activity on this. Please reopen if needed.

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

No branches or pull requests

3 participants