Skip to content

Cannot find linker script memory.x: cargo workspaces #461

@tgross35

Description

@tgross35

Hello all,

Does anyone have a workaround for the following error:

cannot find linker script memory.x
          >>> INCLUDE memory.x
          >>>         ^

that arises when compiling packages within workspaces?

I've tried a few things like adding println!("cargo:rustc-link-arg=-T{}/memory.x", env!("CARGO_MANIFEST_DIR")); to my build.rs, but nothing has worked so far.

Whatever the solution is, it would likely be good to document it somewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions