diff options
Diffstat (limited to 'src/net/sf/antcontrib/cpptasks/LinkerDef.java')
-rw-r--r-- | src/net/sf/antcontrib/cpptasks/LinkerDef.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/LinkerDef.java b/src/net/sf/antcontrib/cpptasks/LinkerDef.java index af1d307..51f3165 100644 --- a/src/net/sf/antcontrib/cpptasks/LinkerDef.java +++ b/src/net/sf/antcontrib/cpptasks/LinkerDef.java @@ -281,6 +281,17 @@ public class LinkerDef extends ProcessorDef { } return linker; } + public Linker getLinker() { + Linker linker = (Linker) super.getProcessor(); + if (linker == null) { + linker = GccLinker.getInstance(); + } + if (getLibtool() && linker instanceof CommandLineLinker) { + CommandLineLinker cmdLineLinker = (CommandLineLinker) linker; + linker = cmdLineLinker.getLibtoolLinker(); + } + return linker; + } public int getStack(LinkerDef[] defaultProviders, int index) { if (isReference()) { return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) |