[PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 09:49:53 PST 2015


rnk added a comment.

I'd like clang to work out of the box with mingw-w64 releases from at least the past year. You're mostly interested in the non-builtin parts of -fms-extensions, like declspec and UUID, right? One way we could do this is to enable -fms-extensions in mingw but then suppress the builtins in that environment, or have some other flag to enable them.

You can then change the mingw headers to use `__has_builtin(_InterlockedCompareExchange)` to provide compatibility with either mode.


http://reviews.llvm.org/D14180





More information about the cfe-commits mailing list