<div dir="ltr"><div>Hello,</div><div><br></div><div>I needed to export symbols for the C API into LLVM.dll. The existing option LLVM_BUILD_LLVM_DYLIB=ON didn't work as expected. The comment the top of `tools/llvm-shlib/CMakeLists.txt` seemed to imply that it should export the C API. However, that wasn't the case on MSVC.</div><div><br></div><div>The attached patch fixes that, hopefully in the least intrusive way. I tested it with CMake 3.5.2 and VS 2015.</div><div><br></div><div>This is my first patch to LLVM, I tried to follow the steps of the developer policy document. Let me know if there's anything else I need to do or if I did anything wrong.</div><div><br></div><div>Thanks,</div><div>Remi Gillig.</div></div>