You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that outside of setup there is no documentation/tutorial at all for integrating BlocksDS support into an IDE, whether it its VS Code, the full fat VS or any other C/C++ IDE available out there. Has anyone tried so far to include BlocksDS functions inside an IDE and compile a program with it in a terminal? I am sorry if this topic exists already.
Wonderful solves this by providing some tools and some patches on top of GCC to generate compile_commands.json files that most IDEs can ingest, however this will further deepen BlocksDS's dependency on Wonderful. There are probably other options.
The text was updated successfully, but these errors were encountered:
As a quick and dirty solution, it may be worth documenting clangd's compile_flags.txt which can specify options (defines, include paths, target...) across an entire project. It's quite easy to set up and I use it myself in most C and C++ projects I work with--although I don't believe it would work for arm7+arm9 projects given that the options are project-wide. I'm not sure what behavior clangd follows if there are different compile_flags.txt in subdirectories, but that could be a possible solution.
There's also the possibility of making a tool that generates compile_commands.json by traversing the specified source directories and creating entries with the proper arm7/arm9 flags, although something like bear could just be used instead (I've found it to be a bit finicky though).
Personally, I just went for implementing -MJ in GCC; it's convenient but, again, this makes it incompatible with non-Wonderful toolchains, as it's a non-upstreamed patch.
From a certain forum:
Wonderful solves this by providing some tools and some patches on top of GCC to generate
compile_commands.json
files that most IDEs can ingest, however this will further deepen BlocksDS's dependency on Wonderful. There are probably other options.The text was updated successfully, but these errors were encountered: