summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2007-07-27 23:01:14 +0000
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2007-07-27 23:01:14 +0000
commit6a97c81d40adc13ebc59966f72fdacdb326b7758 (patch)
tree723a5ad308583f83036dda973654b2025d143724 /src
parentf786f302a00c580141c98b7d8f75c3212c9bafe5 (diff)
downloadcpptasks-parallel-6a97c81d40adc13ebc59966f72fdacdb326b7758.tar.gz
cpptasks-parallel-6a97c81d40adc13ebc59966f72fdacdb326b7758.tar.bz2
cpptasks-parallel-6a97c81d40adc13ebc59966f72fdacdb326b7758.tar.xz
cpptasks-parallel-6a97c81d40adc13ebc59966f72fdacdb326b7758.zip
Fixed NARPLUGIN-135
Diffstat (limited to 'src')
-rw-r--r--src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java3
-rw-r--r--src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
index 8838242..32e6e7e 100644
--- a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
+++ b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
@@ -252,7 +252,8 @@ public abstract class AbstractLdLinker extends CommandLineLinker {
return patterns;
}
public int getMaximumCommandLength() {
- return Integer.MAX_VALUE;
+// FREEHEP
+ return isWindows() ? 20000 : Integer.MAX_VALUE;
}
public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) {
String[] baseNames = super.getOutputFileNames(baseName, versionInfo);
diff --git a/src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java b/src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java
index 409655b..1abdbec 100644
--- a/src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java
+++ b/src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java
@@ -256,6 +256,7 @@ public final class GccCCompiler extends GccCompatibleCCompiler {
return GccLinker.getInstance().getLinker(linkType);
}
public int getMaximumCommandLength() {
- return Integer.MAX_VALUE;
+// FREEHEP
+ return isWindows() ? 20000 : Integer.MAX_VALUE;
}
}