[Compbench-devel] CompBenchmarks++/Benchmark/Compiler BenchmarkContext-Compiler.cpp, 1.3, 1.4
Brought to you by:
xfred
|
From: Frederic T. <xf...@us...> - 2006-09-26 16:00:47
|
Update of /cvsroot/compbench/CompBenchmarks++/Benchmark/Compiler In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21555 Modified Files: BenchmarkContext-Compiler.cpp Log Message: Fix on compiler selection when a vanilla gcc/g++ is used. Index: BenchmarkContext-Compiler.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/Benchmark/Compiler/BenchmarkContext-Compiler.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BenchmarkContext-Compiler.cpp 18 Sep 2006 18:57:39 -0000 1.3 --- BenchmarkContext-Compiler.cpp 26 Sep 2006 16:00:39 -0000 1.4 *************** *** 74,77 **** --- 74,86 ---- compilerBinary)); } + raw=compilerBinary; + if (((int) raw.find("g++")>0) || (raw=="g++")) { + return(new CBMBenchmarkContextCompilerGCC_cpp(system, + compilerBinary)); + } + if (((int) raw.find("gcc")>0) || (raw=="gcc")) { + return(new CBMBenchmarkContextCompilerGCC(system, + compilerBinary)); + } } |