Skip to content

Build errors from Linux host for Windows target #15

Description

@traktion

include!(concat!(env!("OUT_DIR"), "\\lib.rs"));

When building a windows target from Linux, this error causes a failure:

error: couldn't read `/home/paul/dev/anttp/target/x86_64-pc-windows-gnu/release/build/crunchy-3bac6a37de467f15/out\lib.rs`: No such file or directory (os error 2)
  --> /home/paul/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crunchy-0.2.3/src/lib.rs:37:1
   |
37 | include!(concat!(env!("OUT_DIR"), "\\lib.rs"));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

Should the path depend on the system doing the build, rather than the build target?

Thanks!
Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions