Skip to content

Can't find system headers #242

@dimbleby

Description

@dimbleby
/usr/include/sys/types.h:146:10: fatal error: 'stddef.h' file not found
/usr/include/sys/types.h:146:10: fatal error: 'stddef.h' file not found, err: true

Looks like you go to the trouble of figuring out where to look - https://github.com/servo/rust-bindgen/blob/bdfab643e70df469dd0d163cc91bf48955250735/src/bin/bindgen.rs#L64-L67 - and then forget all about it! - https://github.com/servo/rust-bindgen/blob/bdfab643e70df469dd0d163cc91bf48955250735/src/bin/bindgen.rs#L73.

I think the fix is simply:

-    match builder_from_flags(env::args()) {
+    match builder_from_flags(bind_args.into_iter()) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions