Skip to content

incompatible_disable_sysroot_from_configuration: libc_top should be set by attribute #6565

@katre

Description

@katre

Flag: --incompatible_disable_sysroot_from_configuration
Available since: 0.20
Will be flipped in: 0.21
Enclosing tracking issue: #6543

The sysroot (also called grte_top and libc_top) was previously set by default in the CROSSTOOL file, using the default_grte_top property. As this is a build label, and creates a new dependency in the build, it needs to be moved into an actual build target.

The cc_toolchain rule now has an attribute called libc_top that is used to set this value.

Migration notes:
To migrate, remove any default_grte_top properties in your CROSSTOOL file, and set the libc_top attribute on the corresponding cc_toolchain target to be the same value. The libc_top needs to be a fully-qualified label, so in many cases the value from CROSSTOOL will need to have :everything added to refer to a specific target.

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)incompatible-changeIncompatible/breaking changeteam-Rules-CPPIssues for C++ rules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions