Skip to content

compile_commands.json omits -flto and rewrites the compiler as clang++ --target=avr #1467

Closed

Description

@zackees

While auditing cold-build perf, .fbuild/build/uno/release/compile_commands.json listed clang++ --target=avr with no -flto, although the real avr-g++ invocations include -flto. That misleads anyone comparing flags or replaying commands; I briefly thought fbuild didn't use LTO. Either emit the real command, or add the real one next to the clangd-oriented one (for example, a compile_commands.raw.json).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions