-
Notifications
You must be signed in to change notification settings - Fork 5
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
IAR build in VSCode is slower than in IAR Workbench #42
Comments
@LucaGotti So there are some differences in how a project is built, but the time you're suggesting sounds like there is some sort of problem. Which version of the workbench are you using and what does your project structure look like, e.g., how many files, how many configurations, pre/post-builds etc? |
@jlonnberg : |
So to explain the difference between the workbench and the vscode plugins; the workbench is able to keep the entire project in memory which means that building does not require any load action on the project. The vscode plugins uses iarbuild, which is a standalone CI utility for building projects. Consequently, building in vscode requires iarbuild to load the project which most likely causes the overhead that you're seeing. I'll investigate if we can improve this. A WA that might be applicable here is to run iarbuild with the "-ninja" option on your project which will enable you to build with ninja directly instead which will remove the overhead. Note that the ninja file is stale, so if you change any options or add/remove any files, you'll need to regenerate the ninja file. |
@jlonnberg |
There is not specific action for it, so you'll need to manually run "iarbuild [proj-name] -ninja [configuration]" to generate the ninja file. You can also define it as a custom task, https://code.visualstudio.com/docs/editor/tasks#_custom-tasks, to make generation a bit easier. To build, simply navigate to the configuration directory and run "ninja" |
@jlonnberg : just as a reference, after having generated the ninja file, in vscode a complete rebuild takes roughly the same as workbench : both now takes about 6 minutes . |
It's at least two times longer !
The text was updated successfully, but these errors were encountered: