use pre/post compile/link command return values (e.g., DOS ERRORLEVEL)
CompletedIt would be nice if the build process would use the return value from pre/post compile/link commands. For example, a post-compile command might invoke a batch file that ran a static analysis tool (like LINT), processed the output, and returned zero for 'okay', and non-zero for 'not-okay'. The 'not-okay' return value could then be used to automatically abort the build, forcing the user to fix their source code before allowing the build to continue. Similarly, a pre-link command might invoke a regression test (like unit tests, for example), and return similar values to abort the build and not allow a link to occur until the regression test(s) pass too.
-
I've just tried this with the latest version of CrossWorks for ARM (2.0.10) and the post compile and link commands do in fact do this.
It looks like there is a bug with the pre compile and link commands as it continues to carry out the compile/link and then fails. This will be fixed in the next release.
Please sign in to leave a comment.
Comments
2 comments