Hi, On origin/mob, before https://repo.or.cz/tinycc.git/commit/dd2e5f8b06bc6ada943291fa4c67c8397038310f the exit code of a script executed with `tcc -run` was the return code of its main(), which I found useful for getting return codes from scripts.
After, though, it's been forced to be always 1 if non-zero: https://repo.or.cz/tinycc.git/blobdiff/3eb6352c52b92143bd0590ea3015ad0342890edb..dd2e5f8b06bc6ada943291fa4c67c8397038310f:/tcc.c (rather than using s->nb_errors). It looks like that was intentional (maybe to do with running tests?). But would it make sense to restore the behaviour for normal `tcc -run` uses? scott
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel