Skip to content

baremetal target are broken #100

@MarcTreySonos

Description

@MarcTreySonos

baremetal targets do not have any sysroot, as a consequence no TARGET_SYSROOT exists for those targets.

this change make the presence of TARGET_SYSROOT mandatory:
https://github.com/snipsco/dinghy/blob/dinghy-test/0.4.21/dinghy-build/src/bindgen_macros.rs#L48

this break the compilation on the cortex-m baremetal target

proposed fix: only add the --sysroot when the env var TARGET_SYSROOT exists

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