1
/**********************************************************************
2
* Copyright (c) 2007, 2010 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
**********************************************************************/
12
package org.eclipse.cdt.managedbuilder.gnu.mingw;
14
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
15
import org.eclipse.cdt.managedbuilder.core.IToolChain;
16
import org.osgi.framework.Version;
19
* @author Doug Schaefer
21
* @noextend This class is not intended to be subclassed by clients.
23
public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {
25
private final boolean supported;
27
public MingwIsToolChainSupported() {
28
// Only supported if we can find the mingw bin dir to run the compiler
29
supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
32
public boolean isSupported(IToolChain toolChain, Version version, String instance) {