www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Request for -v commandline option for DMC

reply "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

Because we want to use DMC in a automated build system, we want to know at
the start of the build process which DMC version we are building with. I
cannot find a commandline flag with which the compiler version is dumped to
the console. Just running it without options gives output, but there are
keypresses needed then. Can maybe a -v option be added that shows the
compiler version details?

Johnny Willemsen
Jul 23 2003
next sibling parent reply Arjan Knepper <arjan ask.me> writes:
The predefined macro __DMC__ is the compiler version.

Arjan

Johnny Willemsen wrote:
 Hi,
 
 Because we want to use DMC in a automated build system, we want to know at
 the start of the build process which DMC version we are building with. I
 cannot find a commandline flag with which the compiler version is dumped to
 the console. Just running it without options gives output, but there are
 keypresses needed then. Can maybe a -v option be added that shows the
 compiler version details?
 
 Johnny Willemsen
 
 
Jul 23 2003
parent "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

Thanks, but we use a perl autobuild environment and in the build set have a
config part where we list the compiler version. For this we just run the
compiler to print out its version info. See
http://www.dre.vanderbilt.edu/scoreboard/integrated.html for a list of all
the builds currently running. For DMC we just want to do dm -v to print out
the version info.

Johnny
"Arjan Knepper" <arjan ask.me> wrote in message
news:bfllno$q5v$1 digitaldaemon.com...
 The predefined macro __DMC__ is the compiler version.

 Arjan

 Johnny Willemsen wrote:
 Hi,

 Because we want to use DMC in a automated build system, we want to know
at
 the start of the build process which DMC version we are building with. I
 cannot find a commandline flag with which the compiler version is dumped
to
 the console. Just running it without options gives output, but there are
 keypresses needed then. Can maybe a -v option be added that shows the
 compiler version details?

 Johnny Willemsen
Jul 23 2003
prev sibling next sibling parent "Matthew Wilson" <matthew stlsoft.org> writes:
Seconded

"Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
news:bflflq$l9s$1 digitaldaemon.com...
 Hi,

 Because we want to use DMC in a automated build system, we want to know at
 the start of the build process which DMC version we are building with. I
 cannot find a commandline flag with which the compiler version is dumped
to
 the console. Just running it without options gives output, but there are
 keypresses needed then. Can maybe a -v option be added that shows the
 compiler version details?

 Johnny Willemsen
Jul 23 2003
prev sibling parent reply Jan Knepper <jan smartsoft.us> writes:
What about just running SCPPN.EXE?
That will give you the compiler version.

Jan



Johnny Willemsen wrote:

 Hi,

 Because we want to use DMC in a automated build system, we want to know at
 the start of the build process which DMC version we are building with. I
 cannot find a commandline flag with which the compiler version is dumped to
 the console. Just running it without options gives output, but there are
 keypresses needed then. Can maybe a -v option be added that shows the
 compiler version details?

 Johnny Willemsen
-- ManiaC++ Jan Knepper
Jul 23 2003
parent reply "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

That works. Thanks for the hint. I will use that but it would be nice if all
executables have for example -v to print out the exact version info.

Johnny
"Jan Knepper" <jan smartsoft.us> wrote in message
news:3F1E8618.C5611C40 smartsoft.us...
 What about just running SCPPN.EXE?
 That will give you the compiler version.

 Jan



 Johnny Willemsen wrote:

 Hi,

 Because we want to use DMC in a automated build system, we want to know
at
 the start of the build process which DMC version we are building with. I
 cannot find a commandline flag with which the compiler version is dumped
to
 the console. Just running it without options gives output, but there are
 keypresses needed then. Can maybe a -v option be added that shows the
 compiler version details?

 Johnny Willemsen
-- ManiaC++ Jan Knepper
Jul 23 2003
parent reply "Greg Peet" <admin gregpeet.com> writes:
"Johnny Willemsen" wrote:
 That works. Thanks for the hint. I will use that but it would be nice if
all
 executables have for example -v to print out the exact version info.
It would also be nice if all compilers used the same switches/flags for compilation. It should be an ISO standard me thinks!
Jul 23 2003
parent "Johnny Willemsen" <jwillemsen remedy.nl> writes:
It would be ok for me if all compilers just have an option that just show
the version info. Most compilers we just do -v and get a error about
unsupported option, but luckely they then also give the version number

Johnny
"Greg Peet" <admin gregpeet.com> wrote in message
news:bfmfjc$1nli$1 digitaldaemon.com...
 "Johnny Willemsen" wrote:
 That works. Thanks for the hint. I will use that but it would be nice if
all
 executables have for example -v to print out the exact version info.
It would also be nice if all compilers used the same switches/flags for compilation. It should be an ISO standard me thinks!
Jul 23 2003