Added Run variant #11

Merged
merged 3 commits into from May 8, 2013

Conversation

Projects
None yet
2 participants
Contributor

rroels commented May 8, 2013

Having a Run variant allows users to execute ("run") the produced
binary with Crtl+Shift+B (or CMD+SHIFT+B on OSX).

rroels added some commits May 8, 2013

Added Run variant
Having a Run variant allows users to execute ("run") the produced
binary with Crtl+Shift+B (or CMD+SHIFT+B on OSX).
Owner

dbp commented May 8, 2013

Is that supposed to be ".$file_base_name" - ie, is the dot supposed to be there?

Contributor

rroels commented May 8, 2013

Yes, on Linux/OSX you would execute a binary like this (e.g. ".foo" to execute binary file foo)
EDIT: no, you are right, there's an error here, it should be ./foo

Owner

dbp commented May 8, 2013

Hmm. That's not true, at least for linux (what I use). Do you mean "./foo"? .foo looks for a binary named ".foo" in your path.

Update Rust.sublime-build
Forgot a slash, woops
Contributor

rroels commented May 8, 2013

You are absolutely right, I was confused for a moment there. It's because I always do:
rustc --out-dir=bin foo.rs

So in my sublime-build I have ./bin/$file_base_name

But I thought it would be bad to force the output in a certain folder, so I changed it to the root folder, and killed a slash in the process.

Owner

dbp commented May 8, 2013

Looks good!

dbp added a commit that referenced this pull request May 8, 2013

@dbp dbp merged commit 157e985 into dbp:master May 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment