diff options
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java')
-rw-r--r-- | src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java index f3bc174..4dfe771 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java @@ -27,7 +27,7 @@ import net.sf.antcontrib.cpptasks.types.LibrarySet; /** * Adapter for the g++ variant of the GCC linker * - * @author Stephen M. Webb <[email protected]> + * @author Stephen M. Webb <[email protected]>, et.al. */ public class GppLinker extends AbstractLdLinker { protected static final String[] discardFiles = new String[0]; @@ -44,6 +44,8 @@ public class GppLinker extends AbstractLdLinker { "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"}; private static final GppLinker instance = new GppLinker("gcc", objFiles, discardFiles, "", "", false, null); + private static final GppLinker clangInstance = new GppLinker("clang", objFiles, + discardFiles, "", "", false, null); private static final GppLinker machDllLinker = new GppLinker("gcc", objFiles, discardFiles, "lib", ".dylib", false, null); private static final GppLinker machPluginLinker = new GppLinker("gcc", @@ -51,6 +53,9 @@ public class GppLinker extends AbstractLdLinker { public static GppLinker getInstance() { return instance; } + public static GppLinker getCLangInstance() { + return clangInstance; + } private File[] libDirs; private String runtimeLibrary; protected GppLinker(String command, String[] extensions, |