Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] check for Cygwin toolchain under CDT 4.0

Hello! 

In order to find out, if the build is based on the cygwin toolchain, I
use the following code snippet:

-----
IProject project =
ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);

org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo mbi =
 
org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.getBuildInfo(pro
ject);

String s = mbi.getManagedProject().getBaseId();
boolean isCygwin = s.contains("cygwin");
-----

Is there a better way to do that under CDT 4.0.0?

Regards,
Nils


Back to the top