summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java')
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
index c1e9786..f02dd64 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
@@ -26,7 +26,7 @@ import net.sf.antcontrib.cpptasks.compiler.Linker;
/**
* Adapter for the GCC linker
*
- * @author Adam Murdoch
+ * @author Adam Murdoch, et.al.
*/
public class GccLinker extends AbstractLdLinker {
private static final String[] discardFiles = new String[0];
@@ -44,6 +44,8 @@ public class GccLinker extends AbstractLdLinker {
discardFiles, "lib", ".so", true, null));
private static final GccLinker instance = new GccLinker("gcc", objFiles,
discardFiles, "", "", false, null);
+ private static final GccLinker clangInstance = new GccLinker("clang", objFiles,
+ discardFiles, "", "", false, null);
private static final GccLinker machBundleLinker = new GccLinker("gcc",
objFiles, discardFiles, "lib", ".bundle", false, null);
private static final GccLinker machDllLinker = new GccLinker("gcc",
@@ -51,6 +53,9 @@ public class GccLinker extends AbstractLdLinker {
public static GccLinker getInstance() {
return instance;
}
+ public static GccLinker getCLangInstance() {
+ return clangInstance;
+ }
private File[] libDirs;
protected GccLinker(String command, String[] extensions,
String[] ignoredExtensions, String outputPrefix,