On Tuesday 08 February 2011, Brad King wrote: > On 02/05/2011 01:19 PM, Alexander Neundorf wrote: > > Hi, > > > > I'm working currently on improved assembler support, should be ready for > > 2.8.5 (http://public.kitware.com/Bug/view.php?id=8392). > > > > This means I need to determine a "compiler ID" for the ASM compiler. > > Since on each architecture the asm sources are different, I can't just > > use a common file and try to build it everywhere, as it is done for C, > > C++ and Fortran. > > > > Instead I want to use the quering via the command line, and then parse > > the output with some regexes. > > Look for the "VENDOR" table in the other language files. It does exactly > this. Please use the same names/layout for the ASM version.
Yes, I'm doing exactly that. > > This works already with gcc and icc. > > > > But I don't have access to the HP C/C++ compiler, IBM VisualAge compiler > > and SunStudio compilers. > > > > What I need for each of them is > > * the command line argument so they print their name or version number > > * their output in response to that. > > > > If you have access to these compilers, it would be nice if you could do > > that for me. > > The IBM VisualAge compiler was rebranded to "XL": > > $ xlc -qversion > IBM XL C/C++ for AIX, V11.1 (5724-X13) > Version: 11.01.0000.0001 > $ xlC -qversion > IBM XL C/C++ for AIX, V11.1 (5724-X13) > Version: 11.01.0000.0001 > > IBM Summary: Use -qversion, look for "XL C". > > ----------------------------------------------------------- > Sun: > > $ cc -V > cc: Sun C 5.6 2004/07/15 > usage: cc [ options] files. Use 'cc -flags' for details > $ CC -V > CC: Sun C++ 5.6 2004/07/15 > > $ cc -V > cc: Sun C 5.9 Linux_i386 Build40_1 2007/02/09 > usage: cc [ options] files. Use 'cc -flags' for details > $ CC -V > sunCC: Sun C++ 5.9 Linux_i386 Build40_1 2007/02/09 > > Sun Summary: Use -V, look for "Sun C". > > I don't know whether this has changed since Oracle's purchase. > > ----------------------------------------------------------- > HP: > > $ cc -V > cc: HP C/aC++ B3910B A.06.20 [May 13 2008] > $ aCC -V > aCC: HP C/aC++ B3910B A.06.20 [May 13 2008] > > HP Summary: Use -V, look for "HP C". Thanks :-) Alex _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
