diff options
author | Konrad Borowski <x.fix@o2.pl> | 2014-05-01 09:46:27 +0200 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2014-05-01 09:46:27 +0200 |
commit | f8e35de18d8d5ec78ad0f220afa1a5a4c8f827d7 (patch) | |
tree | 9af6ddb4cb2e1104d9ebb457b132bf0fbac378c9 /fish_version.cpp | |
parent | a7facfb760ff3169e8a1a49078b98199f541f910 (diff) |
Shorten compilation times
Now fish shell stores version is a small file called by other files.
This means that a slight change which modifies one file won't cause
many of files to recompile.
The compilation unit is intentionally small, this is by design. The
smaller it is, the faster it will recompile, and it will be compiled
a lot.
Diffstat (limited to 'fish_version.cpp')
-rw-r--r-- | fish_version.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fish_version.cpp b/fish_version.cpp new file mode 100644 index 00000000..e434c3c8 --- /dev/null +++ b/fish_version.cpp @@ -0,0 +1,14 @@ +/** \file fish_version.c Fish version receiver. + + This file has a specific purpose of shortening compilation times when + the only change is different `git describe` version. +*/ + +#include "fish_version.h" + +/** + * Return fish shell version. + */ +const char *get_fish_version() { + return FISH_BUILD_VERSION; +} |