Closed falkTX closed 2 years ago
It's implemented in 466f234.
thanks!
sadly the current implementation does not work as expected. when the file has errors (for example the "identifier" name was not used/set), an empty output file is still generated.
You're right, this is fixed now
confirmed it works, thanks!
it is a bit weird that it deletes existing files if previous successful generation was done but new one fails, but not really a problem really, just a small oddity.
While having faustpp output to stdout is fine for local usage, it is a problem for repeated/automated builds. This is because using "x > y" syntax always creates a file even if the command that outputs to console fails, which can be a problem when faustpp is part of a build system pre-build step for example (the file is always created even if something fails).
Would be best for faustpp to be the one generating the output file, preferably only doing so if all early checks pass.