[ 
https://issues.apache.org/jira/browse/THRIFT-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Ballard updated THRIFT-6:
-------------------------------

    Attachment: 0001-Add-version-switch-to-the-compiler-to-show-the-thri.patch

This patch (suitable for use with git-am) implements the -version switch on the 
compiler. A compiler/cpp/src/version.h file is generated when compiling that 
contains the THRIFT_VERSION and THRIFT_REVISION. A print_version.sh toplevel 
script is included (used to make version.h) that's suitable for use from 
language libraries if they wish to embed the current version/revision as well.

> Thrift libraries and compiler lack version number
> -------------------------------------------------
>
>                 Key: THRIFT-6
>                 URL: https://issues.apache.org/jira/browse/THRIFT-6
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Bryan Duxbury
>         Attachments: 
> 0001-Add-version-switch-to-the-compiler-to-show-the-thri.patch
>
>
> Right now it's impossible to tell which version of Thrift you have installed. 
> If you're depending on features that have recently been added (and that 
> subtly don't exist), you can spend a lot of time chasing your tail trying to 
> figure out what the problem is.
> This may be something that has to be implemented piecemeal on each client 
> library (ruby gem, java classes, etc). Thoughts?
> While we're at it, let's add a --version switch or something to the compiler 
> so you know what version of stuff you're actually generating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to