[PlayStation] Make special udis86 C file handling only happen for Visual Studio
authorstephan.szabo@sony.com <stephan.szabo@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Feb 2020 02:25:04 +0000 (02:25 +0000)
committerstephan.szabo@sony.com <stephan.szabo@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Feb 2020 02:25:04 +0000 (02:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=207729

Reviewed by Don Olmstead.

* PlatformPlayStation.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@256579 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/PlatformPlayStation.cmake

index 9bc7e84..9583cc5 100644 (file)
@@ -1,3 +1,12 @@
+2020-02-13  Stephan Szabo  <stephan.szabo@sony.com>
+
+        [PlayStation] Make special udis86 C file handling only happen for Visual Studio
+        https://bugs.webkit.org/show_bug.cgi?id=207729
+
+        Reviewed by Don Olmstead.
+
+        * PlatformPlayStation.cmake:
+
 2020-02-13  Caio Lima  <ticaiolima@gmail.com>
 
         [ESNext][BigInt] We don't support BigInt literal as PropertyName
index 641b229..30edc96 100644 (file)
@@ -34,16 +34,18 @@ list(APPEND JavaScriptCore_SOURCES
     inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp
 )
 
-# With the VisualStudio generator, the compiler complains about -std=c++* for C sources.
-set_source_files_properties(
-    disassembler/udis86/udis86.c
-    disassembler/udis86/udis86_decode.c
-    disassembler/udis86/udis86_itab_holder.c
-    disassembler/udis86/udis86_syn-att.c
-    disassembler/udis86/udis86_syn-intel.c
-    disassembler/udis86/udis86_syn.c
-    PROPERTIES LANGUAGE CXX
-)
+if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
+    # With the VisualStudio generator, the compiler complains about -std=c++* for C sources.
+    set_source_files_properties(
+        disassembler/udis86/udis86.c
+        disassembler/udis86/udis86_decode.c
+        disassembler/udis86/udis86_itab_holder.c
+        disassembler/udis86/udis86_syn-att.c
+        disassembler/udis86/udis86_syn-intel.c
+        disassembler/udis86/udis86_syn.c
+        PROPERTIES LANGUAGE CXX
+    )
+endif ()
 
 # This overrides the default x64 value of 1GB for the memory pool size
 add_definitions(-DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=64)