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

missing compile options (-g -O) for files in sub-groups #195

Open
andbararm opened this issue Nov 4, 2024 · 0 comments
Open

missing compile options (-g -O) for files in sub-groups #195

andbararm opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@andbararm
Copy link

andbararm commented Nov 4, 2024

Describe the bug
When adding files to a cproject file in nested sub-groups like this:

  groups:
    - group: Source Files
      groups:
      - group: Main Files
        files:
        - file: ./main_AB.c

then during the build, options -g (Debug Information) and -O (Optimization) are missing. As a consequence, for such a module it is not possible to set breakpoints, due to the missing debug information.
When not using nested sub-groups like this:

  groups:
    - group: Source Files
      files:
        - file: ./main_AB.c

the named options are there. The difference can be seen in build related files, like in build.ninja or the compile_commands.json.

To Reproduce
You can use the attached project. It can be opened in uVision or Keil Studio. Then build it and check named files for the missing compiler options. Like in compile_commands.json, main_AB.c is missing -g -O0, while system_DS_CM3.c is compiled with -g -O0.
Test_Solution.zip

Expected behavior
Also when putting source files in a sub-group, it should get all the compiler options like other files not in sub groups or also from other CMSIS components used in the project.

Environment (please complete the following information):

CBuild version: 2.6.1

@andbararm andbararm added the bug Something isn't working label Nov 4, 2024
@jkrech jkrech transferred this issue from Open-CMSIS-Pack/devtools Nov 4, 2024
@jkrech jkrech moved this to Backlog in CMSIS-Toolbox 2.7.0 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants