<div dir="ltr">Hello everyone,<div><br></div><div style>I'm trying to load and run a pass on Cygwin target:</div><div style>opt -load=mypass.dll -mypass<br></div><div style><br></div><div style>There is an LLVM example - Hello, however lib/Transforms/Makefile says</div>
<div style><div># No support for plugins on windows targets</div><div style>and then excludes Hello from build</div><div>ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW Minix))</div><div><div>  PARALLEL_DIRS := $(filter-out Hello, $(PARALLEL_DIRS))</div>
<div>endif</div></div><div><br></div><div style>On the other hand, I found old suggestions to use</div><div><br></div></div><div style><div>configure --enable-shared --disable-embed-stdcxx</div><div><br></div><div style>and then link a pass to LLVM dynamic library, using the following Makefile for the pass:</div>
<div style>...</div><div style><div>LOADABLE_MODULE=1</div><div>include $(LEVEL)/Makefile.common<br></div><div>LIBS+=-Lpath-to-LLVM -lcygLLVM-3.4svn<br></div><div><br></div></div><div style>I'm able to build the mypass.dll which is linked against cygLLVM-3.4svn.dll.</div>
<div style><br></div><div style>However, opt load still fails (has no effect).</div><div style>Are opt plugins still supported for Cygwin target?</div><div style><br></div><div style>Kind Regards,</div><div style>Sergey Yakushkin</div>
<div><br></div><div><br></div></div></div>