Skip to content

incompatible_disable_crosstool_file: Disable loading data from CROSSTOOL files #7320

Closed

Description

@scentini

Flag: --incompatible_disable_crosstool_file
Available since: 0.23 (February 2019 release)
Will be flipped in: 0.24 (March 2019 release)

Motivation
The motivation for this change is described here: design doc
#5380 tracks the effort of rewriting CROSSTOOL files in Starlark.

Migration
cc_toolchains should have one extra attribute - toolchain_config that points to a target that provides CcToolchainConfigInfo (by calling cc_common.create_cc_toolchain_config_info()).
cc_toolchain_config_lib.bzl provides Starlark equivalents for all structures and substructures defined in crosstool_config.proto.

A migrator script that converts a CROSSTOOL file to a Starlark rule can be found under rules_cc/blob/master/tools/migration. The script assumes that the CROSSTOOL file does not contain legacy fields (see incompatible_disable_legacy_crosstool_fields).

ctoolchain_compare.bzl is a test rule that compares a CToolchain from a CROSSTOOL file and a Starlark rule.

Activity

  1. self-assigned this
    on Feb 1, 2019
  2. added
    incompatible-change
    team-Rules-CPP
    P2
    on Feb 1, 2019
  3. added and removed
    P2
    on Feb 4, 2019
  4. keith commented on Feb 6, 2019

    @keith
    Member

    I'm making a crosstool change here #7356 should I be editing the new file instead of the old CROSSTOOL.tpl? I attempted to run the migrator from rules_cc but ended up with a file that's very different from the one checked in, which makes me assume that's not perfectly reproducible

  5. 7 remaining items

  6. added
    P1
    and removed on Feb 27, 2019
  7. scentini commented on Feb 27, 2019

    @scentini
    ContributorAuthor

    Due to a bug discovered in incompatible_disable_legacy_crosstool_fields, we are postponing the migration window to 0.24, and the breaking release will be 0.25. Apologies for the inconvenience.

  8. added a commit that references this issue on May 1, 2019
  9. added a commit that references this issue on May 6, 2019
  10. added a commit that references this issue on Sep 4, 2022
    fdc3872
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1incompatible-changeteam-Rules-CPP

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions