Skip to content

Allow to build without specifying a target triple #229

@adrienballsonos

Description

@adrienballsonos

Description of the problem

I did not find a way to use setuptools_rust without having it passing a target triple flag (--target) to the rust compiler. The problem is that, as explained in the rust doc, using the --target flag changes the build directory layout and build outputs are no longer under target/debug or target/release but instead they are stored in target/<triple>/debug/ or target/<triple>/release/.

In my case this is problematic because I want to share the cargo build cache and avoid re-compiling the rust library when I build the python wheel, after having built the rust library using cargo build. But to do so, I need the target dir to be target/debug/ or target/release/.

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