Disable addition of "SCUMMVM_SVN_REVISION" to the version string, in case --enable-release was specified on configure run.

svn-id: r50246
This commit is contained in:
Johannes Schickel 2010-06-24 22:33:49 +00:00
parent e7f3ddf2db
commit d783ca972a
3 changed files with 11 additions and 1 deletions

View file

@ -2,4 +2,8 @@
#define SCUMMVM_SVN_REVISION #define SCUMMVM_SVN_REVISION
#endif #endif
#ifdef RELEASE_BUILD
#undef SCUMMVM_SVN_REVISION
#endif
#define SCUMMVM_VERSION "1.2.0svn" SCUMMVM_SVN_REVISION #define SCUMMVM_VERSION "1.2.0svn" SCUMMVM_SVN_REVISION

View file

@ -2,4 +2,8 @@
#define SCUMMVM_SVN_REVISION #define SCUMMVM_SVN_REVISION
#endif #endif
#ifdef RELEASE_BUILD
#undef SCUMMVM_SVN_REVISION
#endif
#define SCUMMVM_VERSION "@VERSION@" SCUMMVM_SVN_REVISION #define SCUMMVM_VERSION "@VERSION@" SCUMMVM_SVN_REVISION

4
configure vendored
View file

@ -1042,7 +1042,9 @@ fi
if test "$_release_build" = yes; then if test "$_release_build" = yes; then
# Release mode enabled: enable optimizations. This also # Release mode enabled: enable optimizations. This also
# makes it possible to use -Wuninitialized, so let's do that. # makes it possible to use -Wuninitialized, so let's do that.
CXXFLAGS="$CXXFLAGS -O2 -Wuninitialized" # We will also add a define, which indicates we are doing
# an build for a release version.
CXXFLAGS="$CXXFLAGS -O2 -Wuninitialized -DRELEASE_BUILD"
fi fi