Skip to content

Commit

Permalink
[CMake] Specify stdlib version for PlayStation port
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264630

Reviewed by Basuke Suzuki.

Set the stdlib version if the CXX compiler supports the flag.

Remove an unnecessary include, its already in `WebKitCommon.cmake`,
while we're in this file.

* Source/cmake/OptionsPlayStation.cmake:

Canonical link: https://commits.webkit.org/270674@main
  • Loading branch information
donny-dont committed Nov 13, 2023
1 parent 32658f6 commit 65081c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/cmake/OptionsPlayStation.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
set(PORT PlayStation)

include(CheckSymbolExists)

string(APPEND CMAKE_C_FLAGS_RELEASE " -g")
string(APPEND CMAKE_CXX_FLAGS_RELEASE " -g")
set(CMAKE_CONFIGURATION_TYPES "Debug" "Release")
Expand All @@ -22,6 +20,9 @@ WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-dll-attribute-on-redeclaration)
# other code then assumes we have things like std::u8string which we do not.
WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-builtin-macro-redefined)

# Set the standard libary version
WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-sce-stdlib=v1)

set(ENABLE_WEBKIT_LEGACY OFF)
set(ENABLE_WEBINSPECTORUI OFF)

Expand Down

0 comments on commit 65081c6

Please sign in to comment.