[cfe-commits] r142798 - /cfe/trunk/lib/Driver/Tools.cpp
Douglas Gregor
dgregor at apple.com
Mon Oct 24 08:49:38 PDT 2011
Author: dgregor
Date: Mon Oct 24 10:49:38 2011
New Revision: 142798
URL: http://llvm.org/viewvc/llvm-project?rev=142798&view=rev
Log:
Have -fms-no-extensions turn off -fms-compatibility
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=142798&r1=142797&r2=142798&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Oct 24 10:49:38 2011
@@ -1852,8 +1852,12 @@
CmdArgs.push_back("-fms-extensions");
// -fms-compatibility=0 is default.
- if (Args.hasFlag(options::OPT_fms_compatibility, options::OPT_fno_ms_compatibility,
- getToolChain().getTriple().getOS() == llvm::Triple::Win32))
+ if (Args.hasFlag(options::OPT_fms_compatibility,
+ options::OPT_fno_ms_compatibility,
+ (getToolChain().getTriple().getOS() == llvm::Triple::Win32 &&
+ Args.hasFlag(options::OPT_fms_extensions,
+ options::OPT_fno_ms_extensions,
+ true))))
CmdArgs.push_back("-fms-compatibility");
// -fmsc-version=1300 is default.
More information about the cfe-commits
mailing list