Skip to content

incompatible_target_cpu_from_platform #27574

@mai93

Description

@mai93

Motivation

This is part of moving away from legacy --cpu flag towards platforms.

Description

This flag will set the TARGET_CPU make variable to the name of the CPU constraint value in the target platform specified by --platforms.

If --experimental_override_platform_cpu_name (old name: --experimental_override_name_platform_in_output_dir) is specified for a given platform, the value of TARGET_CPU is set to the value specified in the mapping instead.

Incompatible Flag

incompatible_target_cpu_from_platform

Migration Guide

The code checking TARGET_CPU value can be updated to support the new value or --experimental_override_platform_cpu_name can be used to map the platform to a specific TARGET_CPU that matches the old one.

In which Bazel LTS version will this incompatible change be enabled?

Bazel 9

Additional Context

No response

TODO List

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1I'll work on this now. (Assignee required)incompatible-changeIncompatible/breaking changeteam-Configurabilityplatforms, toolchains, cquery, select(), config transitions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions