Title: [280569] trunk/Source/_javascript_Core
- Revision
- 280569
- Author
- stephan.sz...@sony.com
- Date
- 2021-08-02 16:39:10 -0700 (Mon, 02 Aug 2021)
Log Message
[PlayStation] Make C files in testapi compile with a C standard rather than C++ one
https://bugs.webkit.org/show_bug.cgi?id=228701
Reviewed by Ross Kirsling.
* shell/PlatformPlayStation.cmake: Set standard for C files in testapi
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (280568 => 280569)
--- trunk/Source/_javascript_Core/ChangeLog 2021-08-02 23:19:18 UTC (rev 280568)
+++ trunk/Source/_javascript_Core/ChangeLog 2021-08-02 23:39:10 UTC (rev 280569)
@@ -1,3 +1,12 @@
+2021-08-02 Stephan Szabo <stephan.sz...@sony.com>
+
+ [PlayStation] Make C files in testapi compile with a C standard rather than C++ one
+ https://bugs.webkit.org/show_bug.cgi?id=228701
+
+ Reviewed by Ross Kirsling.
+
+ * shell/PlatformPlayStation.cmake: Set standard for C files in testapi
+
2021-08-02 Yusuke Suzuki <ysuz...@apple.com>
[JSC] Yarr should use Bitmap instead of ByteVector for BoyerMoore search
Modified: trunk/Source/_javascript_Core/shell/PlatformPlayStation.cmake (280568 => 280569)
--- trunk/Source/_javascript_Core/shell/PlatformPlayStation.cmake 2021-08-02 23:19:18 UTC (rev 280568)
+++ trunk/Source/_javascript_Core/shell/PlatformPlayStation.cmake 2021-08-02 23:39:10 UTC (rev 280569)
@@ -24,3 +24,13 @@
if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
set_target_properties(jsc PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
endif ()
+
+
+if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
+ # With the VisualStudio generator, the compiler complains about -std=c++* for C sources.
+ set_source_files_properties(
+ ../API/tests/CustomGlobalObjectClassTest.c
+ ../API/tests/testapi.c
+ PROPERTIES COMPILE_FLAGS --std=gnu17
+ )
+endif ()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes