⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280569 in webkit


Ignore:
Timestamp:
Aug 2, 2021, 4:39:10 PM (5 years ago)
Author:
stephan.szabo@sony.com
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
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r280544 r280569  
     12021-08-02  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [PlayStation] Make C files in testapi compile with a C standard rather than C++ one
     4        https://bugs.webkit.org/show_bug.cgi?id=228701
     5
     6        Reviewed by Ross Kirsling.
     7
     8        * shell/PlatformPlayStation.cmake: Set standard for C files in testapi
     9
    1102021-08-02  Yusuke Suzuki  <ysuzuki@apple.com>
    211
  • trunk/Source/JavaScriptCore/shell/PlatformPlayStation.cmake

    r262096 r280569  
    2525    set_target_properties(jsc PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
    2626endif ()
     27
     28
     29if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
     30    # With the VisualStudio generator, the compiler complains about -std=c++* for C sources.
     31    set_source_files_properties(
     32        ../API/tests/CustomGlobalObjectClassTest.c
     33        ../API/tests/testapi.c
     34        PROPERTIES COMPILE_FLAGS --std=gnu17
     35    )
     36endif ()
Note: See TracChangeset for help on using the changeset viewer.