summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-08-28 16:29:40 -0400
committerGitHub <noreply@github.com>2019-08-28 16:29:40 -0400
commitce5fd43b0c9c60ad85e7c5a54161b37897640ea6 (patch)
treea3828c8f717a4fcae3b36b7f4f046cc30ef4cffc /docs
parentfecfb36e61c3bdb133b57713c2b6d27ff7924a9b (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/command-line-slangc.md2
1 files changed, 2 insertions, 0 deletions
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 <name>[=<value>]`: Insert a preprocessor macro definition
* The space between `-D` and `<name>` is optional
* If no `<value>` is specified, Slang will define the macro with an empty value