<div dir="ltr">I'm using clang on Windows to generate an AST from header files for some driver research I'm doing for my Ph.D. I found setting environment flags to be a pain. What would be necessary to expose this flag from clang-cl?</div><br><div class="gmail_quote"><div dir="ltr">On Tue, 8 Dec 2015 at 16:17 Hans Wennborg <<a href="mailto:hans@chromium.org">hans@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br>
<br>
On Tue, Dec 8, 2015 at 11:46 AM, Daniel Kats via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
> How to call clang-cl with -emit-ast command-line argument? I tried -Xclang<br>
> -emit-ast and got "unknown argument: -emit-ast"<br>
<br>
It doesn't work with -Xclang, because -emit-ast is a driver flag, not<br>
a frontend flag.<br>
<br>
clang-cl could probably expose this flag if it's useful, but in<br>
general its focus is on MSVC-compatible flags. What do you need it<br>
for?<br>
<br>
- Hans<br>
</blockquote></div>