32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
--- a/Source/cmake/OptionsCommon.cmake
|
|
+++ b/Source/cmake/OptionsCommon.cmake
|
|
@@ -31,7 +31,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS
|
|
if (COMPILER_IS_GCC_OR_CLANG)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-exceptions -fno-strict-aliasing")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-strict-aliasing -fno-rtti")
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
|
|
endif ()
|
|
|
|
if (COMPILER_IS_CLANG AND CMAKE_GENERATOR STREQUAL "Ninja")
|
|
--- a/Source/WTF/wtf/StdLibExtras.h
|
|
+++ b/Source/WTF/wtf/StdLibExtras.h
|
|
@@ -292,7 +292,7 @@ inline void* operator new(size_t, NotNul
|
|
// This adds various C++14 features for versions of the STL that may not yet have them.
|
|
namespace std {
|
|
// MSVC 2013 supports std::make_unique already.
|
|
-#if !defined(_MSC_VER) || _MSC_VER < 1800
|
|
+#if 0
|
|
template<class T> struct _Unique_if {
|
|
typedef unique_ptr<T> _Single_object;
|
|
};
|
|
@@ -323,7 +323,7 @@ make_unique(Args&&...) = delete;
|
|
#endif
|
|
|
|
// MSVC 2015 supports these functions.
|
|
-#if !COMPILER(MSVC) || _MSC_VER < 1900
|
|
+#if 0
|
|
// Compile-time integer sequences
|
|
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3658.html
|
|
// (Note that we only implement index_sequence, and not the more generic integer_sequence).
|