Skip to content
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

[cbuild] Add option to setup command allowing it to run without installed toolchains #312

Closed
brondani opened this issue Oct 1, 2024 · 2 comments · Fixed by #313
Closed
Assignees
Labels
enhancement New feature or request

Comments

@brondani
Copy link
Collaborator

brondani commented Oct 1, 2024

The cbuild setup has multiple goals and one of them is to generate compile_commands.json: this feature requires the presence of CMake and installed toolchains.
To allow the use of others features, such as the layer detection mechanism, the cbuild setup should have an option to run only the first orchestration of csolution calls, avoiding orchestration of CMake and subsequently toolchain calls.
This is particularly important for online IDEs and services where the project management is fully decoupled from build management.
Suggestion for the option: --no-database

@soumeh01
Copy link
Collaborator

soumeh01 commented Oct 4, 2024

@brondani @jkrech
I've come up with a few additional options, including the one initially suggested. Do you have any preference or perhaps a better suggestion for naming the option, as well as for its short description?

  • --no-cmake Skips CMake orchestration and toolchain setup, focusing only on project management
  • --skip-build-orchestration Avoids orchestration of both CMake and toolchains, running only the initial project setup calls
  • --no-database Executes only the project management phase of project orchestration without triggering CMake
  • --no-toolchain Disables the orchestration of toolchains and CMake, limiting execution to project setup steps

@jkrech
Copy link
Member

jkrech commented Oct 4, 2024

--no-database Skips the generation of compile_commands.json files

soumeh01 added a commit that referenced this issue Oct 4, 2024
@jkrech jkrech moved this from In Progress to Done in CMSIS-Toolbox 2.6.1 patch Oct 4, 2024
@jkrech jkrech closed this as completed by moving to Done in CMSIS-Toolbox 2.6.1 patch Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants