From c1471c8ecb1e49cae9943c537d0161e462935c7b Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 2 Aug 2019 21:07:26 +0800 Subject: [PATCH] Update webkitgtk.rb Fixes building on macOS Mojave --- Formula/webkitgtk.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Formula/webkitgtk.rb b/Formula/webkitgtk.rb index 10a3d71..126f293 100644 --- a/Formula/webkitgtk.rb +++ b/Formula/webkitgtk.rb @@ -60,6 +60,7 @@ def install -DENABLE_WEB_AUDIO=OFF -DUSE_LIBHYPHEN=OFF -DUSE_SYSTEM_MALLOC=ON + -DCMAKE_CXX_FLAGS=-Wno-unused-lambda-capture ] mkdir "build" do @@ -213,3 +214,21 @@ def install m_scrollHistory.append(event); +diff -Naur a/Source/WTF/wtf/Optional.h b/Source/WTF/wtf/Optional.h +--- a/Source/WTF/wtf/Optional.h 2019-02-28 11:08:20.000000000 +0100 ++++ b/Source/WTF/wtf/Optional.h 2019-03-12 19:42:38.000000000 +0100 +@@ -277,12 +277,14 @@ + constexpr nullopt_t nullopt{nullopt_t::init()}; + + ++# if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000 + // 20.5.8, class bad_optional_access + class bad_optional_access : public std::logic_error { + public: + explicit bad_optional_access(const std::string& what_arg) : std::logic_error{what_arg} {} + explicit bad_optional_access(const char* what_arg) : std::logic_error{what_arg} {} + }; ++# endif // _LIBCPP_VERSION < 7000 + + + template