From 13948152b69ef03283ae5dceb1f5fcfca6f292c2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 27 Nov 2020 20:16:24 +0100 Subject: [PATCH] cmd/v: rename reuse-tmpc to keepc --- cmd/tools/vcomplete.v | 2 +- cmd/v/help/build-c.txt | 2 +- vlib/v/pref/pref.v | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vcomplete.v b/cmd/tools/vcomplete.v index 021b4ed67e..3e8b7cb124 100644 --- a/cmd/tools/vcomplete.v +++ b/cmd/tools/vcomplete.v @@ -122,7 +122,7 @@ const ( '-parallel', '-x64', '-W', - '-reuse-tmpc', + '-keepc', '-w', '-print_v_files', '-error-limit', diff --git a/cmd/v/help/build-c.txt b/cmd/v/help/build-c.txt index 0cebb698c2..e14366cd84 100644 --- a/cmd/v/help/build-c.txt +++ b/cmd/v/help/build-c.txt @@ -59,5 +59,5 @@ These build flags are enabled on `build` and `run` as long as the backend is set Useful for similar use-case as above option, except it replaces V-generated prelude with your custom one loaded from specified . - -reuse-tmpc + -keepc Do not remove the temporary .tmp.c and .tmp.c.rsp files. Also do not use a random prefix for them, so they would be fixed and predictable. diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index d2386e2d60..02288e3c3c 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -268,7 +268,7 @@ pub fn parse_args(args []string) (&Preferences, string) { '-W' { res.warns_are_errors = true } - '-reuse-tmpc' { + '-keepc' { res.reuse_tmpc = true } '-w' {