setuptools-rust icon indicating copy to clipboard operation
setuptools-rust copied to clipboard

Strip target suffix for cargo-zigbuild compatibility

Open bet4it opened this issue 7 months ago • 1 comments

When using cargo-zigbuild, target triples may include additional suffixes like glibc versions (e.g. aarch64-unknown-linux-gnu.2.17). This change strips any suffix after the dot to ensure compatibility with rustc, which only accepts standard target triples.

bet4it avatar May 18 '25 11:05 bet4it

@messense does this seem correct to you? Seems to me like cargo-zigbuild might be passing the wrong information down rather than applying a patch here? 🤔

davidhewitt avatar May 30 '25 15:05 davidhewitt