<div dir="ltr">Hi, <div><br></div><div>Thanks Manuel,</div><div><br></div><div>For the 1st issue, I'm working on mac trying to compile windows code. </div><div>For the 2nd issue, I'm working on mac. </div><div><br></div><div>Best regards,</div><div>Han</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 1:11 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""><div dir="ltr">On Mon, Jul 13, 2015 at 12:25 PM Han Wang <<a href="mailto:wanghan02@gmail.com" target="_blank">wanghan02@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I have a simple file containing some Microsoft style inline asm. I can compile this file with -fms-extensions. </div><div><br></div>clang++ -fms-extensions -c test.cpp<div><br><div>No problem for this.</div><div><br></div><div>But when I write a simple AST Matcher tool (foo.out) to parse this file, I got errors. </div><font face="monospace, monospace"><br>./foo.out test.cpp -- clang++ -fms-extensions -c test.cpp<br>test.cpp:19:3: error: MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>  __asm {<br>  ^<br>test.cpp:28:3: error: MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>  __asm mov a1, 2<br>  ^<br>2 errors generated.<br>Error while processing test.cpp.</font></div></div></blockquote><div><br></div></span><div>This seems to want an actual compilation triple to compile. Clang tools currently apparently don't provide one. No idea why though.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">There are also some other problems when parsing test.cpp. For example if I #include <string>, I have to use -- clang++ -I<path-to-string> to identify the system header file path. I'm not sure what makes it different then the normal clang compile. </font></div></div></blockquote><div><br></div></span><div>This definitely works on linux. I have no idea what the Windows system path logic is / should be in the clang driver. Adding Hans, who might have an idea...</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Best regards, </font></div><div><font face="arial, helvetica, sans-serif">Han</font></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>
</blockquote></div><br></div>