diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2005-11-18 21:02:34 +0000 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2005-11-18 21:02:34 +0000 |
commit | 1381c87965ab669820a4a7b48c09aca026f5b478 (patch) | |
tree | 947d5ba097efbc93fae515fdae35e626c1be7bef /src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java | |
download | cpptasks-parallel-1381c87965ab669820a4a7b48c09aca026f5b478.tar.gz cpptasks-parallel-1381c87965ab669820a4a7b48c09aca026f5b478.tar.bz2 cpptasks-parallel-1381c87965ab669820a4a7b48c09aca026f5b478.tar.xz cpptasks-parallel-1381c87965ab669820a4a7b48c09aca026f5b478.zip |
Diffstat (limited to 'src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java')
-rw-r--r-- | src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java b/src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java new file mode 100644 index 0000000..531de0c --- /dev/null +++ b/src/net/sf/antcontrib/cpptasks/intel/IntelLinux64Compiler.java @@ -0,0 +1,36 @@ +// FREEHEP +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 IntelLinux64Compiler extends GccCompatibleCCompiler { + private static final IntelLinux64Compiler instance = new IntelLinux64Compiler( + false, new IntelLinux64Compiler(true, null, false, null), false, + null); + public static IntelLinux64Compiler getInstance() { + return instance; + } + private IntelLinux64Compiler(boolean isLibtool, + IntelLinux64Compiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super("ecpc", "-V", isLibtool, libtoolCompiler, newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IntelLinux64Compiler(getLibtool(), + (IntelLinux64Compiler) this.getLibtoolCompiler(), + newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return IntelLinux64Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} |