Hello,<br><br>here is the context for my question.<br>On Windows, mingw generates symbols with a leading _ in their name.<br><br>I have a project that combines regular C libraries compiled by mingw (runtime.a) and IR code that I generated and compile via llvm libraries (generated.a).<br>
In my case generated.a uses variables exported by runtime.a.<br>And here lies the run, while those variables have the same name in the c files that make runtime.a and in the IR code that I feed llvm, once they get compiled, the former has a leading _ and the latter not.<br>
<br>To complicate things a little further, that project already work on macosx and linux.<br>So, I can't want to rename the said variables in the IR code without recreating ripples on the platforms.<br>Which I do want to avoid.<br>
<br>What I am looking for is the switch to tell llvm assembler "hey, we're on windows, please add the dreaded _".<br>Does such thing exist?<br><br>Where can I look for it?<br><br>Cheers,<br>Carl.<br><br>PS: I'm posting in the correct mailing list?<br>