Skip to content

Add bpfel/bpfeb CPU constraint values#131

Closed
tamird wants to merge 1 commit intobazelbuild:mainfrom
tamird:cpu-bpf
Closed

Add bpfel/bpfeb CPU constraint values#131
tamird wants to merge 1 commit intobazelbuild:mainfrom
tamird:cpu-bpf

Conversation

@tamird
Copy link
Copy Markdown

@tamird tamird commented Oct 22, 2025

These names are used in clang (see
https://github.com/llvm/llvm-project/blob/6bee6b2/llvm/include/llvm/TargetParser/Triple.h#L1154-L1157)
and Rust (see
https://github.com/rust-lang/rust/blob/f5e2df7/src/doc/rustc/src/platform-support.md?plain=1#L311-L312).

This addition is a prerequisite for teaching rules_rust about these
constraints.

This is an alternative to #99 which
spelled these names incorrectly.

Closes #99.

@tamird
Copy link
Copy Markdown
Author

tamird commented Oct 22, 2025

@gregestren could you please have a look at this and #123? The motivation between these two is very similar, and I'd like to follow @avrabe's lead on the proper way to plumb things in rules_rust.

@Wyverald Wyverald closed this in #134 May 1, 2026
@tamird tamird deleted the cpu-bpf branch May 1, 2026 19:37
UebelAndre pushed a commit to UebelAndre/rules_rust that referenced this pull request May 1, 2026
Add support for tier 3 targets bpfeb-unknown-none and bpfel-unknown-none
(see

https://github.com/rust-lang/rust/blob/f5e2df7/src/doc/rustc/src/platform-support.md?plain=1#L311-L312).

This is modeled after bazelbuild#3507
and
should probably be updated if/when
bazelbuild/platforms#131 is merged.

(please use rebase merge when landing this as the proper commit message
is in the commit, rather than the PR description)

/cc @avrabe
dzbarsky pushed a commit to hermeticbuild/rules_rust that referenced this pull request May 3, 2026
Add support for tier 3 targets bpfeb-unknown-none and bpfel-unknown-none
(see

https://github.com/rust-lang/rust/blob/f5e2df7/src/doc/rustc/src/platform-support.md?plain=1#L311-L312).

This is modeled after bazelbuild#3507
and
should probably be updated if/when
bazelbuild/platforms#131 is merged.

(please use rebase merge when landing this as the proper commit message
is in the commit, rather than the PR description)

/cc @avrabe
dzbarsky pushed a commit to hermeticbuild/rules_rust that referenced this pull request May 5, 2026
Add support for tier 3 targets bpfeb-unknown-none and bpfel-unknown-none
(see

https://github.com/rust-lang/rust/blob/f5e2df7/src/doc/rustc/src/platform-support.md?plain=1#L311-L312).

This is modeled after bazelbuild#3507
and
should probably be updated if/when
bazelbuild/platforms#131 is merged.

(please use rebase merge when landing this as the proper commit message
is in the commit, rather than the PR description)

/cc @avrabe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant