PGI compiler on Windows is broken
I'm trying to compile a shared library on Windows using latest PGI compiler (17.4, 64-bit) and have several issues.
In release mode CMake force -Mipa=fast
compiler option, and according to the PGI manual:
As of the PGI 16.3 release, -Mipa has been disabled on Windows.
CMake also passes unsupported -shared
option to the linker to create a DLL, but according to PGI manual:
-Mmakedll: (Windows only) generate a dynamic link library (DLL).
That leads to a failure on the linkage stage.
PGI manual is available here: http://www.pgroup.com/doc/pgi17ref-x64.pdf. PGI compiler is also available for free now.