net.sf.antcontrib.cpptasks.intel.IntelLinuxFortranCompiler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cpptasks-parallel Show documentation
Show all versions of cpptasks-parallel Show documentation
Third-party release of net.sf.antcontrib:cpptasks-parallel:1.0-beta-5-parallel-1-SNAPSHOT.
The newest version!
// BEGINFREEHEP
package net.sf.antcontrib.cpptasks.intel;
import net.sf.antcontrib.cpptasks.compiler.LinkType;
import net.sf.antcontrib.cpptasks.compiler.Linker;
import net.sf.antcontrib.cpptasks.compiler.Processor;
import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler;
import org.apache.tools.ant.types.Environment;
public final class IntelLinuxFortranCompiler extends GccCompatibleCCompiler {
private static final IntelLinuxFortranCompiler instance = new IntelLinuxFortranCompiler(
false, new IntelLinuxFortranCompiler(true, null, false, null), false,
null);
public static IntelLinuxFortranCompiler getInstance() {
return instance;
}
private IntelLinuxFortranCompiler(boolean isLibtool,
IntelLinuxFortranCompiler libtoolCompiler, boolean newEnvironment,
Environment env) {
super("ifort", "-V", isLibtool, libtoolCompiler, newEnvironment, env);
}
public Processor changeEnvironment(boolean newEnvironment, Environment env) {
if (newEnvironment || env != null) {
return new IntelLinuxFortranCompiler(getLibtool(),
(IntelLinuxFortranCompiler) getLibtoolCompiler(),
newEnvironment, env);
}
return this;
}
public Linker getLinker(LinkType type) {
return IntelLinux32Linker.getInstance().getLinker(type);
}
public int getMaximumCommandLength() {
return Integer.MAX_VALUE;
}
}
// ENDFREEHEP