Skip to content

Thinlto build is requested, but the C++ toolchain doesn't define an action_config for 'lto-backend' action #423

@DoDoENT

Description

@DoDoENT

After updating from v1.22.1 to v1.23.0, my release builds started failing with the error:

Thinlto build is requested, but the C++ toolchain doesn't define an action_config for 'lto-backend' action

My .bazelrc contains the following lines:

# sanitizers enabled by default
common --features=asan --features=ubsan 
# no sanitizers in release build, but enable Thin LTO
common:release --features=-asan --features=-ubsan --compilation_mode=opt --features=thin_lto

There was no error in v1.22.1, although I see that -flto=thin was applied just to my targets where I explicitly set the flag, so apparently --features=thin_lto was not supported before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions