Skip to content

dylib outputs required for TARGET when cross-compiling with syntax extension #1612

@mcoffin

Description

@mcoffin

When you list a syntax extension as a cargo dependency, even with plugin = true, if your chosen target doesn't have dylib outputs available, cargo will complain even if the target being built is a staticlib/executable.

This isn't working as intended, right?

For an example, try compiling the zinc (root crate) with --target=thumbv7m-none-eabi from mcoffin/zinc@ac834f2 which depends on the syntax extension crate ioreg from the same project. The syntax extension crate is correctly compiled for the host architecture, but cargo gives an error after compilation about dylib outputs not being available for thumbv7m-none-eabi (which is correct, but shouldn't matter).

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