From 74ac9ef195e28c4499043b55f4b262565be2c032 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 10 Apr 2020 11:55:04 +0300 Subject: [PATCH] builder: write intermediate .c files in the vtmp folder again --- vlib/v/builder/compile.v | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vlib/v/builder/compile.v b/vlib/v/builder/compile.v index 9b5597b4c8..4310424daf 100644 --- a/vlib/v/builder/compile.v +++ b/vlib/v/builder/compile.v @@ -62,8 +62,11 @@ pub fn compile(command string, pref &pref.Preferences) { println('all .v files:') println(files) } - // b.build_c(files, b.out_name_c) // v.pref.out_name + '.c') - b.build_c(files, pref.out_name + '.c') + mut out_name_c := get_vtmp_filename(pref.out_name, '.tmp.c') + if pref.is_so { + out_name_c = get_vtmp_filename(pref.out_name, '.tmp.so.c') + } + b.build_c(files, out_name_c) b.cc() } if pref.is_stats {