1 |
/* |
/* |
2 |
Copyright (c) 2001 Free Software Foundation, Inc. |
Copyright (c) 2001, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
40 |
/** Subclass of Compiler that can be used to invoke gcj. */ |
/** Subclass of Compiler that can be used to invoke gcj. */ |
41 |
public class Compile_gcj extends CompilerProcess |
public class Compile_gcj extends CompilerProcess |
42 |
{ |
{ |
43 |
public String[] computeArguments (String filename) |
private static final String [] COMPILER_ARGS = |
44 |
{ |
{ |
45 |
int len = 3 + (dest == null ? 0 : 2); |
"gcj", |
46 |
String[] result = new String[len]; |
"-C" |
47 |
int i = 0; |
}; |
|
|
|
|
result[i++] = "gcj"; |
|
|
result[i++] = "-C"; |
|
|
if (dest != null) |
|
|
{ |
|
|
result[i++] = "-d"; |
|
|
result[i++] = dest; |
|
|
} |
|
|
result[i++] = filename; |
|
48 |
|
|
49 |
return result; |
public String[] computeArguments (String filename) |
50 |
|
{ |
51 |
|
return computeTypicalArguments(COMPILER_ARGS, |
52 |
|
getDestination(), |
53 |
|
filename); |
54 |
} |
} |
55 |
} |
} |