Merge pull request #117 from alexrp/master

Return 0 immediately after printing -version/--version.
This commit is contained in:
David Nadlinger
2012-06-10 09:56:03 -07:00

View File

@@ -83,6 +83,8 @@ void printVersion() {
global.ldc_version, global.version, global.llvm_version, global.copyright, global.written);
printf("D Language Documentation: http://d-programming-language.org/index.html\n"
"LDC Homepage: https://github.com/ldc-developers/ldc\n");
exit(EXIT_SUCCESS);
}
// Helper function to handle -d-debug=* and -d-version=*