Title: [283007] trunk
Revision
283007
Author
[email protected]
Date
2021-09-23 14:35:00 -0700 (Thu, 23 Sep 2021)

Log Message

[MSVC] The "/Zc:lambda" switch is recommended to use the new lambda processor.
https://bugs.webkit.org/show_bug.cgi?id=226070

Reviewed by Ross Kirsling.

Visual Studio 16.5 added the "/Zc:lambda" switch for the better
C++ conformance, but it had a compiler crashing bug. Visual Studio
16.9 fixed the bug.

* Source/cmake/OptionsMSVC.cmake: Added /Zc:lambda for Visual
Studio 16.9 or later. I will remove the MSVC_VERSION check after
AppleWin bots will upgrade MSVC.

Modified Paths

Diff

Modified: trunk/ChangeLog (283006 => 283007)


--- trunk/ChangeLog	2021-09-23 20:43:15 UTC (rev 283006)
+++ trunk/ChangeLog	2021-09-23 21:35:00 UTC (rev 283007)
@@ -1,3 +1,18 @@
+2021-09-23  Fujii Hironori  <[email protected]>
+
+        [MSVC] The "/Zc:lambda" switch is recommended to use the new lambda processor.
+        https://bugs.webkit.org/show_bug.cgi?id=226070
+
+        Reviewed by Ross Kirsling.
+
+        Visual Studio 16.5 added the "/Zc:lambda" switch for the better
+        C++ conformance, but it had a compiler crashing bug. Visual Studio
+        16.9 fixed the bug.
+
+        * Source/cmake/OptionsMSVC.cmake: Added /Zc:lambda for Visual
+        Studio 16.9 or later. I will remove the MSVC_VERSION check after
+        AppleWin bots will upgrade MSVC.
+
 2021-09-17  Angelos Oikonomopoulos  <[email protected]>
 
         Unbreak GCC_OFFLINEASM_SOURCE_MAP when LTO is in use

Modified: trunk/Source/cmake/OptionsMSVC.cmake (283006 => 283007)


--- trunk/Source/cmake/OptionsMSVC.cmake	2021-09-23 20:43:15 UTC (rev 283006)
+++ trunk/Source/cmake/OptionsMSVC.cmake	2021-09-23 21:35:00 UTC (rev 283007)
@@ -205,3 +205,8 @@
     set(HAVE_INT128_T OFF)
     list(REMOVE_ITEM _WEBKIT_CONFIG_FILE_VARIABLES HAVE_INT128_T)
 endif ()
+
+# Enable the new lambda processor for better C++ conformance
+if (NOT COMPILER_IS_CLANG_CL AND MSVC_VERSION GREATER_EQUAL 1928)
+    add_compile_options(/Zc:lambda)
+endif ()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to