Return 0 immediately after printing -version/--version.

This commit is contained in:
alexrp
2012-06-09 20:43:50 +02:00
parent fdee1fc725
commit 00926c5654

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=*