[PATCH] D45835: Add new driver mode for dumping compiler options

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 20 11:22:05 PDT 2018


efriedma added a comment.

> If any of those options we care about wind up being changed, there's a good chance we may need to change something on our end anyway, so breaking us is actually useful.

I'm not sure I follow.  The language options have specific consequences you could check some other way, so they're "stable" in the sense that the same flags will produce the same result (e.g. LangOpts.FastMath represents whether __FAST_MATH__ is defined).  So it should be possible to provide the data somehow; I'm more concerned about taking names and enum values from LangOptions.def itself.


https://reviews.llvm.org/D45835





More information about the cfe-commits mailing list