Skip to content

[csolution] Add reference to compile_commands.json file into cbuild.yml #2261

@brondani

Description

@brondani

It's known that compile_commands.json are stored alongside its related artifacts, i.e. in the context-depth output folder, however there is no explicit reference to it.

build:
  output:
    - type: compilation database
      file: compile_commands.json

Also consider adding a path node with output files and output-dirs already combined, for example:

build:
  output-dirs:
    outdir: ./custom
  output:
    - type: elf
      file: program.axf
      path: ./custom/program.axf
    - type: compilation database
      file: compile_commands.json
      path: ./custom/compile_commands.json

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions