[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-TCC Compiler-TCC.cpp, 1.3,
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-03-20 20:59:35
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-TCC In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28892 Modified Files: Compiler-TCC.cpp Compiler-TCC.h Log Message: VanillaVersion() introduced. Index: Compiler-TCC.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-TCC/Compiler-TCC.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Compiler-TCC.h 19 Feb 2007 18:44:02 -0000 1.3 --- Compiler-TCC.h 20 Mar 2007 20:31:40 -0000 1.4 *************** *** 22,25 **** --- 22,26 ---- virtual std::string getCompilerName(void); virtual std::string getCompilerVersion(void); + virtual std::string getCompilerVanillaVersion(void); virtual std::string Language(void); Index: Compiler-TCC.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-TCC/Compiler-TCC.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Compiler-TCC.cpp 19 Feb 2007 18:44:02 -0000 1.3 --- Compiler-TCC.cpp 20 Mar 2007 20:31:40 -0000 1.4 *************** *** 10,13 **** --- 10,15 ---- #include <System/System.h> + #include <config.h> + using namespace CBM; *************** *** 44,47 **** --- 46,62 ---- } + std::string CompilerTCC::getCompilerVanillaVersion(void) + { + std::string cmd; + std::string result; + + cmd+=compilerBinary; + cmd+=" -v | "; + cmd+=CBM_PROG_CUT; + cmd+=" -f3 -d' '"; + system->exec(cmd, result); /* !!! */ + return(result); + } + std::string CompilerTCC::Language(void) { |