Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate target configuration output directories #4577

Closed
parkovski opened this issue Oct 4, 2017 · 2 comments
Closed

Separate target configuration output directories #4577

parkovski opened this issue Oct 4, 2017 · 2 comments

Comments

@parkovski
Copy link
Contributor

#4427 related. I use the Linux subsystem on Windows 10 and commonly build a Windows and Linux build from the same project folder - currently both binaries end up in target/debug. It'd be nice to have the option to set up target-based outputs, so I could get Windows binaries in target/windows/debug and Linux in target/linux/debug.

My preference for this would be providing some interpolated variables so I could put something like this in my Cargo.toml:

output-dir = "target/${target.os}/${profile}"
@sfackler
Copy link
Member

sfackler commented Oct 4, 2017

This will happen if you pass --target explicitly.

@alexcrichton
Copy link
Member

Thanks for the report! As @sfackler notes, however, this already happens when you pass --target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants