From adf2aa87607810f8a0a93e2cb7a4d1f4ee9e891a Mon Sep 17 00:00:00 2001 From: spaceface Date: Sat, 20 Feb 2021 17:53:22 +0100 Subject: [PATCH] pref: add a `-debug-tcc` alias option (#8834) --- vlib/v/pref/pref.v | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index 4344ec76ca..86513a5e54 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -198,6 +198,13 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences res.is_vlines = false res.build_options << arg } + '-debug-tcc' { + res.ccompiler = 'tcc' + res.build_options << '$arg "$res.ccompiler"' + res.retry_compilation = false + res.show_cc = true + res.show_c_output = true + } '-repl' { res.is_repl = true }