maven-nar / nar-maven-plugin

Native ARchive plugin for Maven
https://maven-nar.github.io/
Apache License 2.0
231 stars 158 forks source link

icpc link is not recognized #323

Open SG38 opened 6 years ago

SG38 commented 6 years ago

When configuring a C++ compilation with \<cpp>\<name> icpc performs correctly. The Intel compiler is called to create the object files. However, \<linker> \<name> icpc is not recognized. Only g++is available for linking. The icpc compiler needs g++ and I cannot make a link from g++ to icpc. Is there a way to force to use our own linker please? Thank you in advance.

ctrueden commented 6 years ago

Passing the -X flag to mvn may shed more light on the choices the NAR plugin is making. It is likely you will need to dig into the source code to understand what is happening and potentially improve the code to support your use case. I took a quick look in the source (e.g. at LinkerEnum.java) but icpc is certainly already on the list of supported linkers.

bchiodo commented 6 years ago

I use icpc as the field in without issue on nar >= 3.5.1. There must be more to it. If you post a complete example project that exhibits the issue I can test compile/link it here.