McCode icon indicating copy to clipboard operation
McCode copied to clipboard

Implement mechanism to sort CFLAGS in Windows-conda for separation of linker / compiler parts

Open willend opened this issue 1 month ago • 0 comments

The right order seems to be along the lines of

cl.exe -o templateSANS_Mantid.exe templateSANS_Mantid.c /DUSE_MPI /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /DUSE_NEXUS /IC:\Users\pkwi\miniforge3\Library\include /link /LIBPATH:C:\Users\pkwi\miniforge3\Library\lib /DYNAMICBASE msmpi.lib NeXus.lib

i.e. code, defines, includes at compiler end, everything link-oriented post the /link separator /link /LIBPATH:${CONDA_PREFIX}\Library\lib lib1.lib lib2.lib ...

willend avatar May 18 '24 10:05 willend