Skip to content

Cargo subcommand instead of shell scripts #971

Closed
@l4l

Description

@l4l

TLDR: it would be nice to have something like cargo cl-codegen build and similar.

For now i think it is quite clumsy to specify magic env-var(s) and running magic shell scripts by their full paths. Though, these shell scripts might be quite handy for development, they are not really convenient for usage (and probably for maintaining).

Perhaps it would be much easier to use cranelift codegen via single binary, that can be configured once with persistent file. I am not really sure about all of nitty-gritty details, but probably it can be handled with cargo sub-command with additional config file (e.g. for target, librustc_codegen_cranelift.so path, path for sysroot, etc). Do I miss something important and what do you think about that?

Metadata

Metadata

Assignees

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions