bazelbuild / bazelbuild/platforms

Constraints for CPU features?

Open
#13 4 comments 3 reactions 0 assignees View on GitHub
feature request P4
Dominant language
Starlark
Stars
124
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Hi. Would it be possible to detect CPU features using something
like https://github.com/google/cpu_features/
and provide them as platform constraints?

This could help in enabling certain compiler flags and instruction set
architectures for targets.

What needs to be done so that something like this would work
with Bazel?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the repository's existing platform constraints and Bazel's platform and toolchain documentation. Investigate how CPU features from the proposed cpu_features project could become constraints and affect compiler flags or instruction-set targets. Done would require a decided design and an agreed implementation scope.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.