-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Compiling too slow #15259
Comments
you are using |
Can you try to set
|
Hi Yes - I'm using Do you mean to pass these two arguments ( |
Can anyone answer my question, please? |
Personally I use the .mbedignore file to remove any unneeded/unwanted things from mbed-os and that significantly drops my compile time (once in the root of the project it must be named ".mbedignore"). Maybe there's a better way to do it but I don't know/care about it since this works for me. I also don't use anything newer than os 6.8.0 with CLI 1 so things may have changed in newer versions Here is the one I use, you can change it to include/exclude what you like Also after it has been compiled once it should only recompile small changes, unless you edit something like the mbed_app.json, after which it will start from scratch again. This is also all just personal experience, your mileage may vary |
Great idea. I will definitely do that. Another idea is to use mbed-tools, or CLI version 2. But then again, I have such trouble with the |
This problem is well known and due to the use of interface in cmake instead of static or object libs. see #13981 (comment) and subsequent comments there was some work done to fix that, but the changes are huge and development has slowed down. there is a work in progress from @multiplemonomials you can find here: https://github.com/multiplemonomials/mbed-os/tree/mbed-ce-build-system-refactor and also ongoing discussions about making a community fork of mbed-os to fix this kind of issues early and then back port them if possible to the main mbed-os repo. |
Thats pretty normal. |
Description of defect
Target(s) affected by this defect ?
Toolchain(s) (name and version) displaying this defect ?
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
How is this defect reproduced ?
The text was updated successfully, but these errors were encountered: