Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a9604976be8ad8528572fa027e7bd08c701aeb79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**********************************************************************
 * Copyright (c) 2007, 2010 QNX Software Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *     QNX Software Systems - Initial API and implementation
 **********************************************************************/

package org.eclipse.cdt.managedbuilder.gnu.mingw;

import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.core.runtime.PluginVersionIdentifier;

/**
 * @author Doug Schaefer
 *
 * @noextend This class is not intended to be subclassed by clients.
 * @noinstantiate This class is not intended to be instantiated by clients.
 */
public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {

	private final boolean supported;
	
	public MingwIsToolChainSupported() {
		// Only supported if we can find the mingw bin dir to run the compiler
		supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
	}
	
	public boolean isSupported(IToolChain toolChain,
			PluginVersionIdentifier version, String instance) {
		return supported;
	}

}

Back to the top