-
Notifications
You must be signed in to change notification settings - Fork 26
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
"Always on" -run flag and running encore without -clang or -gcc broken #19
Comments
Sorry about that! I'll fix it asap. The No argument will be the "just-compile" again. |
I reckon the flag should name the target codes you want to generate (consider when we generate llvm intermediate code, or perhaps dump internal EXPR trees as text). Maybe --generate-c, etc It might be useful also to dump various intermediate trees for debugging. Dave Sent from my iPhone On 23/07/2014, at 14:51, TobiasWrigstad [email protected] wrote:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
Having -run delete the executable seems odd to me. Maybe -run-once. Sent from my iPhone On 23/07/2014, at 15:12, Stephan Brandauer [email protected] wrote:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
@supercooldave: @TobiasWrigstad was wrong, it deletes the intermediate C-file, not the executable /Elias (under voodoo control by @TobiasWrigstad ) |
@supercooldave It deletes the executable because the intended semantics is to mirror a script. A later optimisation will be to not delete the executable and only recompile if the source is newer than the executable. |
None of what you say convinces me that it is a good idea. In any case, —run-once better captures the semantics. Dave On 23 Jul 2014, at 16:39, Stephan Brandauer [email protected] wrote:
[email protected] Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
Did I reply to this? Sent from my iPhone On 23/07/2014, at 16:39, Stephan Brandauer [email protected] wrote:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
|
Beaut! |
Encorec could check whether argv[0] is "encore" (without the c). If so, run would be implicit. |
Stephan has added a really nice "shebang" feature to the compiler to facilitate running Encore programs.
Bug
When you run encore file.enc (i.e,. you don't write -clang or -gcc), then you get an error because no runnable file is produced:
Request for change
I would like to be able to "just compile" without running, especially right now when I am forced to do some C tweaking of most programs to get them to run.
I suggest that we add a –run switch to the compiler and only run the program if we have a successful compilation and the -run switch is present.
As I type this, I see that there is a -run switch but it seems to be on by default.
I am equally happy to be forced to write --just-compile or something similar to not have the program being run.
The text was updated successfully, but these errors were encountered: