Skip to content

Commit 3d7be5f

Browse files
committed
v.builder: support V_NO_RM_CLEANUP_FILES=1, to ease debugging of -usecache issues
1 parent e8754af commit 3d7be5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vlib/v/builder/cc.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ fn (mut v Builder) post_process_c_compiler_output(ccompiler string, res os.Resul
3333
if v.pref.reuse_tmpc {
3434
return
3535
}
36+
if os.getenv('V_NO_RM_CLEANUP_FILES') != '' {
37+
return
38+
}
3639
for tmpfile in v.pref.cleanup_files {
3740
if os.is_file(tmpfile) {
3841
if v.pref.is_verbose {

0 commit comments

Comments
 (0)