Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Added Run variant #11

Merged
merged 3 commits into from
May 8, 2013
Merged

Added Run variant #11

merged 3 commits into from
May 8, 2013

Conversation

rroels
Copy link
Contributor

@rroels 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 2 commits May 8, 2013 11:42
Having a Run variant allows users to execute ("run") the produced
binary with Crtl+Shift+B (or CMD+SHIFT+B on OSX).
@dbp
Copy link
Owner

dbp commented May 8, 2013

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

@rroels
Copy link
Contributor Author

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

@dbp
Copy link
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.

Forgot a slash, woops
@rroels
Copy link
Contributor Author

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.

@dbp
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants