diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-02 12:01:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-02 12:01:07 +0200 |
commit | 48f8883de7b8fa348423b3baf262de08c98eba18 (patch) | |
tree | 024b2aa3f2a5ef5f1b8cad8cc1d8902840b4e94c /build | |
parent | 626348009e74d2ec6e9f500d27f60728b4fc81df (diff) |
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.
Diffstat (limited to 'build')
-rw-r--r-- | build/.gitignore | 5 | ||||
-rw-r--r-- | build/buildfile | 10 |
2 files changed, 10 insertions, 5 deletions
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 |