commit 131039249f8eabbf1afc22576d6746bda9cc7bb8
parent eb0f08cdd46f41d6806be59ea6b0f9cc0952818f
Author: Remy Noulin <loader2x@gmail.com>
Date: Sun, 5 Sep 2021 14:37:22 +0200
stop trying to copy the executable when cleaning with -d
src/sheepy.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
Diffstat:
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/sheepy.c b/src/sheepy.c
@@ -2259,19 +2259,17 @@ int MAIN(int ARGC, char** ARGV) {
finish:
// copy exe
- if (isEmptyS(run) && !sheepyParams.dontCompileExe) {
+ if (isEmptyS(run) && !sheepyParams.dontCompileExe && !sheepyParams.clean) {
// copy it to main source folder
pError0(copy(buildExePath, exePath));
- if (!sheepyParams.clean) {
- if (programResult) {
- dum = BLD UDL BGYLW RED"Failed to build Executable:"RST" %s\n";
- }
- else {
- dum = BLD GRN"Built Executable:"RST" %s\n";
- }
- printf(dum, exePath);
- }
+ if (programResult) {
+ dum = BLD UDL BGYLW RED"Failed to build Executable:"RST" %s\n";
}
+ else {
+ dum = BLD GRN"Built Executable:"RST" %s\n";
+ }
+ printf(dum, exePath);
+ }
if (getG(cfgD, rtBool, "print_compile_commands") && !isEmptyS(run) && !sheepyParams.clean) {
if (programResult) {
dum = BLD UDL BGYLW RED"Failed to build Executable:"RST" %s\n";