Closed mubix closed 4 years ago
Not familiar with the process of using GCC plugins on MinGW, have you tried using it as-is?
I tried this:
i686-w64-mingw32-gcc-win32 -Wall -Os -fPIC -fplugin=/root/hellscape/build/hellscape.so -fplugin-arg-hellscape-sub nanomet.c -o hell.exe -s -lws2_32 -lwininet
And got this:
# i686-w64-mingw32-gcc-win32 -Wall -Os -fPIC -fplugin=/root/hellscape/build/hellscape.so -fplugin-arg-hellscape-sub nanomet.c -o hell.exe -s -lws2_32 -lwininet
error: expected GCC 9.3
cc1: error: fail to initialize plugin /root/hellscape/build/hellscape.so
The GCC plug-in headers you are compiling against are not the same as the ones you are running against, you'd need to modify the CMakeLists.txt
to change the includes directory to the plug-in headers of i686-w64-mingw32-gcc-win32
(I assume this has been resolved.)
It would be nice to be able to use this plugin in MinGW