From ce5fd43b0c9c60ad85e7c5a54161b37897640ea6 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 28 Aug 2019 16:29:40 -0400 Subject: Support for getting git version from IGlobalSession (#1040) * Added slang-tag-version.h and travis code to generate the file. * Generate slang-tag-version.h on appveyor. * Move where slang-tag-version.h is generated on appveyor. * Dump slang-tag-version.h to console on travis. * Cat slang-tag-version.h * Added method getBuildTagVersion to IGlobalSession. Added -v option. --- docs/command-line-slangc.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/command-line-slangc.md b/docs/command-line-slangc.md index 65ac7411b..233656057 100644 --- a/docs/command-line-slangc.md +++ b/docs/command-line-slangc.md @@ -80,6 +80,8 @@ Options For completeness, here are the options that `slangc` currently accepts: +* `-v`: Displays the build version. This is the contents of `git describe --tags`. It is typically only set from automated builds (such as distros available on github). A user build will by default be 'unknown'. + * `-D [=]`: Insert a preprocessor macro definition * The space between `-D` and `` is optional * If no `` is specified, Slang will define the macro with an empty value -- cgit v1.2.3