<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I am developing an LLVM pass. To keep the project lightweight, I compiled the pass to .so and add "-Xclang -load -Xclang /path/to/.so -mllvm my-pass-options" to CFLAGS. I tested it on OpenSSL, it worked fine with those .c files but failed on compiling an assembly file (.s). The error messages showed that it could not find the options I defined in the pass. I think that's because clang does not load an external pass for .s files, so it won't find external pass options I put in "-mllvm my-pass-options". However, in the OpenSSL's makefile, FLAGS for compiling .c files and .s files are the same, which means I cannot use different FLAGS for compiling .s files easily (or I need to change lots of lines of OpenSSL's makefile which is not recommended). So here is my question, is there any way to use my external pass with customed options in OpenSSL without changing its makefile a lot? (i.e. FLAGS work fine with both .c and .s files).</div><div><br></div><div>One solution I know is putting the pass in LLVM source code directory and compile the whole project, then use the clang compiled from that directory. However, I think it is not user-friendly to do that.</div><div><br></div><div>** My environment:</div><div>        LLVM-3.8</div><div>        clang version 3.8.1-24</div><div>        Debian GNU/Linux 9 (stretch)</div><div><br></div><div>Thanks for your attention!</div><div><br></div><div>Sincerely,</div><div>Neil<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(0,0,0);font-family:arial;font-size:13.3333px;line-height:20px"><span style="font-family:"times new roman",serif;font-size:11pt">UIUC | Computer Science | Software Engineering</span><br></div><div style="color:rgb(0,0,0);font-family:arial;font-size:13.3333px;line-height:20px"><span style="font-family:"times new roman",serif;font-size:14.6667px">GitHub: </span><a href="https://github.com/zzrcxb" title="Click to open in a new window or tab
https://github.com/zzrcxb; Click to open in a new window or tab
https://github.com/zzrcxb" style="font-family:"times new roman",serif;font-size:14.6667px;color:rgb(149,79,114)" target="_blank">https://github.com/zzrcxb</a></div></div></div></div></div></div></div></div></div></div></div>