Skip to content

Consider making the build triple a top level directory in a rustpkg workspace #11289

Closed
@SiegeLord

Description

@SiegeLord

This would let non-rustpkg tools have an easier time installing artifacts into a rustpkg workspace just by setting the installation prefix and not changing all the installation directories manually. E.g. in an Autoconf or CMake based system you'd simply do:

./configure --exec-prefix rustpkg_workspace/<build_triple>
cmake -DCMAKE_INSTALL_PREFIX=rustpkg_workspace/<build_triple>

Right now you'd have to do something like this instead:

./configure --bindir rustpkg_workspace/bin/<build_triple> --libdir rustpkg_workspace/lib/<build_triple>
# CMake doesn't have an option to do this by default

Which is somewhat less convenient. There's still a question of where to obtain a rustc compatible target triple, but it's a separate issue.

Along the same lines, the default rustc search path could be modified to look for <build_triple>/lib instead of lib/<build_triple>.

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