rust-lang / rust-lang/rust-bindgen

--target flag addition in BindgenContext could cause issues.

Open
#1,544 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug I-unclear
Dominant language
Rust
Stars
5.3k
Forks
829
Avg merge
1d 1h
Merged PRs (30d)
15

Description

13:19 <glandium> emilio: note, there might be something fishy with the automatic addition of --target in BindgenContext, too
13:19 <glandium> emilio: because that doesn't take into account flags like -m32/-m64
13:22 <glandium> it's probably not doing any harm in firefox, but I can see how it could break things in the general case
13:27 <emilio> glandium: https://github.com/rust-lang/rust-bindgen/pull/1543 for the --target stuff
13:27 <emilio> glandium: will file an issue for -m32 / -m64
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating BindgenContext and the code that automatically adds --target. Trace how existing compiler flags, especially -m32 and -m64, are collected and passed, then inspect any related tests. Done means the target selection no longer conflicts with those flags and coverage demonstrates the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.