Răsfoiți Sursa

VS8/9: Add flag map entries for /Zc:wchar_t (#10397)

Sebastian Herbst 15 ani în urmă
părinte
comite
ea9de57750
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      Source/cmGlobalVisualStudio8Generator.cxx

+ 8 - 2
Source/cmGlobalVisualStudio8Generator.cxx

@@ -358,8 +358,14 @@ static cmVS7FlagTable cmVS8ExtraFlagTable[] =
   {"ExceptionHandling", "EHsc", "enable c++ exceptions", "1", 0},
   {"ExceptionHandling", "EHa", "enable SEH exceptions", "2", 0},
 
-  {"EnablePREfast", "analyze", "", "TRUE", 0},
-  {"EnablePREfast", "analyze-", "", "FALSE", 0},
+  {"EnablePREfast", "analyze", "", "true", 0},
+  {"EnablePREfast", "analyze-", "", "false", 0},
+
+  // Language options
+  {"TreatWChar_tAsBuiltInType", "Zc:wchar_t",
+   "wchar_t is a built-in type", "true", 0},
+  {"TreatWChar_tAsBuiltInType", "Zc:wchar_t-",
+   "wchar_t is not a built-in type", "false", 0},
 
   {0,0,0,0,0}
 };