commit 7ca0614929668e933e2feb2e5beb8c57fe66a1bc
parent b07c62845e49d4d9483bdb3740dee8470c3bcadd
Author: Remy Noulin <loader2x@gmail.com>
Date: Thu, 26 Dec 2019 11:30:31 +0100
print build failed message when there are compilation errors
src/sheepy.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
Diffstat:
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/sheepy.c b/src/sheepy.c
@@ -2034,13 +2034,23 @@ int MAIN(int ARGC, char** ARGV) {
// copy it to main source folder
copy(buildExePath, exePath);
if (!sheepyParams.clean) {
- printf("Built Executable: %s", exePath);
- printf("\n");
+ if (programResult) {
+ dum = BLD UDL BGYLW RED"Failed to build Executable:"RST" %s";
+ }
+ else {
+ dum = BLD GRN"Built Executable:"RST" %s";
+ }
+ printf(dum, exePath);
}
}
if (getG(cfgD, rtBool, "print_compile_commands") && !isEmptyS(run) && !sheepyParams.clean) {
- printf("Built executable: %s", buildExePath);
- printf("\n");
+ if (programResult) {
+ dum = BLD UDL BGYLW RED"Failed to build Executable:"RST" %s";
+ }
+ else {
+ dum = BLD GRN"Built Executable:"RST" %s";
+ }
+ printf(dum, buildExePath);
}
// free