CppTasks

To handle the variety of architectures, compilers and linkers, the NAR Plugin uses the cpptasks library available from ant-contrib. This library allows you to specify compilers and linkers from ant (and thus from maven) and unifies most common options for those compilers and linkers.

The NAR Plugin uses cpptasks 1.0 beta 3 from sourceforge with some minor extensions:

  • Patched 1.6
    • - [IntelLinux32Linker, IntelLinux64Linker] changed linker name from icc to icpc and ecc to ecpc for version 8.1 of icc.
  • Patched 1.5
    • - [GccCompatibleCCompiler, GccCCompiler] moved and modified -fno-rtti code
  • Patched 1.4
    • - [GccCompatibleCCompiler] added missing code for -fno-exceptions
  • Patched 1.3
    • - [CompaqVisualFortranCompiler] removed addition of quotes.
  • Patched 1.2
    • - [ForteCCompiler] Added (suncc)
    • - [ForteF77Compiler] Added (sunf77)
    • - [CompilerEnum] Added the above.
  • Patched 1.1 - submitted as bug 1109917 in cpptasks of ant-contrib.
    • - [GppLinker.addImpliedArgs on LinkType] Set "callAddLibrarySets" flag.
    • - [CommandLineLinker] Check "callAddLibrarySets" flag.
The resulting jar file is published on our maven server under: http://java.freehep.org/maven/ant-contrib/jars/.