From 48f8883de7b8fa348423b3baf262de08c98eba18 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Apr 2015 12:01:07 +0200 Subject: Keep previous version of b executable as b-prev until linker succeeds This is useful in case of a linker error in which case the b binary is deleted and we have nothing to use. Also, it is a good idea to manually keep b-save in case of runtime bugs introduced during development. --- build/.gitignore | 5 ++--- build/buildfile | 10 ++++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'build') diff --git a/build/.gitignore b/build/.gitignore index 9a7f491..049eb87 100644 --- a/build/.gitignore +++ b/build/.gitignore @@ -1,5 +1,4 @@ b -b1 +b-prev +b-save config.build - - diff --git a/build/buildfile b/build/buildfile index 3fcc9f4..35b4434 100644 --- a/build/buildfile +++ b/build/buildfile @@ -1,7 +1,13 @@ cxx = cxx/{target rule module} config = config/{operation module} -exe{b1}: cxx{b algorithm name operation spec scope variable target \ +exe{b b-prev}: cxx{b algorithm name operation spec scope variable target \ prerequisite rule file module native context search diagnostics \ token lexer parser process timestamp path utility filesystem dump \ - $config $cxx} + options $config $cxx} + +.: exe{b b-prev} + +#@@ TODO +# +# cli --include-with-brackets --include-prefix build --guard-prefix BUILD --hxx-suffix "" options.cli -- cgit v1.1