projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5d4b59
)
mistake in build command
author
hgn
<hgodden00@gmail.com>
Thu, 13 Jul 2023 19:57:15 +0000
(20:57 +0100)
committer
hgn
<hgodden00@gmail.com>
Thu, 13 Jul 2023 19:57:15 +0000
(20:57 +0100)
vg_build.h
patch
|
blob
|
history
diff --git
a/vg_build.h
b/vg_build.h
index 9e7d2b4200fa1a5632df3f94d1990b4a388e0ec2..d85764548acb7796d96f72e7237a4b3ea3a7f10c 100644
(file)
--- a/
vg_build.h
+++ b/
vg_build.h
@@
-35,6
+35,8
@@
struct compiler_info
k_compiler_mingw
}
compiler;
k_compiler_mingw
}
compiler;
+
+ int clean;
}
static vg_compiler;
}
static vg_compiler;
@@
-88,7
+90,6
@@
void vg_build_start( const char *name, enum compiler compiler )
vg_compiler.include[0] = '\0';
vg_compiler.library[0] = '\0';
vg_compiler.compiler = compiler;
vg_compiler.include[0] = '\0';
vg_compiler.library[0] = '\0';
vg_compiler.compiler = compiler;
-
strcpy( vg_compiler.name, name );
snprintf( vg_compiler.build_dir, 512,
strcpy( vg_compiler.name, name );
snprintf( vg_compiler.build_dir, 512,
@@
-96,6
+97,10
@@
void vg_build_start( const char *name, enum compiler compiler )
name,
vg_compiler_str() );
name,
vg_compiler_str() );
+ if( vg_compiler.clean ){
+ vg_build_syscall( "rm -rf %s", vg_compiler.build_dir );
+ }
+
vg_build_syscall( "mkdir -p %s", vg_compiler.build_dir );
vg_build_include( "-I. -I./vg " );
vg_build_library_dir( "-L. " );
vg_build_syscall( "mkdir -p %s", vg_compiler.build_dir );
vg_build_include( "-I. -I./vg " );
vg_build_library_dir( "-L. " );
@@
-200,7
+205,7
@@
void vg_build_mode_debug(void)
}
void vg_build_clean(void){
}
void vg_build_clean(void){
- vg_
build_syscall( "rm -r %s", vg_compiler.build_dir )
;
+ vg_
compiler.clean = 1
;
}
void vg_build(void)
}
void vg_build(void)