From 796b9dab74e4bede0a7fdf648d72cb3c1bbc419f Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 9 Aug 2019 12:18:53 +0300 Subject: [PATCH] compiler: passing -show_c_cmd should always print the C compiler command. --- compiler/main.v | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/main.v b/compiler/main.v index 4aaa3af319..21ccc0d439 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -876,6 +876,10 @@ mut args := '' exit(0) } // Run + if v.pref.show_c_cmd || v.pref.is_verbose { + println('\n==========') + println(cmd) + } ticks := time.ticks() _ := os.exec(cmd) or { if v.pref.is_debug { @@ -893,8 +897,6 @@ mut args := '' diff := time.ticks() - ticks // Print the C command if v.pref.show_c_cmd || v.pref.is_verbose { - println('\n==========') - println(cmd) println('cc took $diff ms') println('=========\n') }