[
https://issues.apache.org/jira/browse/THRIFT-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608558#action_12608558
]
Kevin Ballard commented on THRIFT-40:
-------------------------------------
# Except configure.ac can't embed the version that print_version.sh reports.
What it *could* embed is the v0.0.1 version, but it's a lot simpler to have a
VERSION file for that. configure.ac could embed that VERSION file rather than
embedding the full output of print_version.sh if you want, but I don't see how
that would be any better. With the new patch, configure.ac asks
print_version.sh for the current version. This does mean it's only recalculated
when you run ./bootstrap.sh, but there doesn't seem to be any way around that.
Recompiling main.cc isn't so bad, and there's really no way to avoid it unless
we want to make version.h actually be version.c and embed functions instead of
#defines. And that would have to be recompiled on every run anyway.
> Make the compiler respond to --version
> --------------------------------------
>
> Key: THRIFT-40
> URL: https://issues.apache.org/jira/browse/THRIFT-40
> Project: Thrift
> Issue Type: Sub-task
> Components: Compiler (General)
> Reporter: Bryan Duxbury
> Attachments:
> 0001-Add-version-switch-to-the-compiler-to-show-the-thri.patch,
> 0001-Add-version-switch-to-the-compiler-to-show-the-thri.patch,
> thrift-40.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.