mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added yellow dog to my speed test configs.
This commit is contained in:
parent
b4cff1eac6
commit
b9af09113a
1 changed files with 36 additions and 1 deletions
|
@ -78,8 +78,13 @@ public class SpeedTest extends TestCase {
|
||||||
|
|
||||||
String config = System.getProperty("speedTest.config");
|
String config = System.getProperty("speedTest.config");
|
||||||
|
|
||||||
if (config != null && config.equals("msvc"))
|
if (config == null)
|
||||||
|
return mingwScannerInfo(false);
|
||||||
|
|
||||||
|
if (config.equals("msvc"))
|
||||||
return msvcScannerInfo(false);
|
return msvcScannerInfo(false);
|
||||||
|
else if (config.equals("ydl"))
|
||||||
|
return ydlScannerInfo(false);
|
||||||
else
|
else
|
||||||
return mingwScannerInfo(false);
|
return mingwScannerInfo(false);
|
||||||
}
|
}
|
||||||
|
@ -143,4 +148,34 @@ public class SpeedTest extends TestCase {
|
||||||
return new ScannerInfo( definitions, includePaths );
|
return new ScannerInfo( definitions, includePaths );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private IScannerInfo ydlScannerInfo(boolean quick) {
|
||||||
|
// TODO It would be easier and more flexible if we used discovery for this
|
||||||
|
if( quick )
|
||||||
|
return new ScannerInfo();
|
||||||
|
Map definitions = new Hashtable();
|
||||||
|
definitions.put("__GNUC__", "3");
|
||||||
|
definitions.put("__GNUC_MINOR__", "3");
|
||||||
|
definitions.put("__GNUC_PATCHLEVEL__", "3");
|
||||||
|
definitions.put("_GNU_SOURCE", "");
|
||||||
|
definitions.put("__unix__", "");
|
||||||
|
definitions.put("__gnu_linux__", "");
|
||||||
|
definitions.put("__linux__", "");
|
||||||
|
definitions.put("unix", "");
|
||||||
|
definitions.put("__unix", "");
|
||||||
|
definitions.put("linux", "");
|
||||||
|
definitions.put("__linux", "");
|
||||||
|
definitions.put("__GNUG__", "3");
|
||||||
|
|
||||||
|
String [] includePaths = new String[] {
|
||||||
|
"/usr/include/g++",
|
||||||
|
"/usr/include/g++/powerpc-yellowdog-linux",
|
||||||
|
"/usr/include/g++/backward",
|
||||||
|
"/usr/local/include",
|
||||||
|
"/usr/lib/gcc-lib/powerpc-yellowdog-linux/3.3.3/include",
|
||||||
|
"/usr/include"
|
||||||
|
};
|
||||||
|
|
||||||
|
return new ScannerInfo( definitions, includePaths );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue