From 9d4c8afb9345e59622dfe920f338d75dd7abe906 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Tue, 13 Oct 2020 10:06:27 +0200 Subject: [PATCH] abseil: update to build against c++17 --- Formula/abseil.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/abseil.rb b/Formula/abseil.rb index 2d98f4f531e85..0c633c5a3644c 100644 --- a/Formula/abseil.rb +++ b/Formula/abseil.rb @@ -4,6 +4,7 @@ class Abseil < Formula url "https://github.com/abseil/abseil-cpp/archive/20200923.1.tar.gz" sha256 "808350c4d7238315717749bab0067a1acd208023d41eaf0c7360f29cc8bc8f21" license "Apache-2.0" + revision 1 bottle do cellar :any_skip_relocation @@ -15,10 +16,8 @@ class Abseil < Formula depends_on "cmake" => :build def install - ENV.cxx11 - mkdir "build" do - system "cmake", "..", *std_cmake_args + system "cmake", "..", *std_cmake_args, "-DCMAKE_CXX_STANDARD=17" system "make" system "make", "install" end @@ -38,7 +37,7 @@ def install std::cout << "Joined string: " << s << "\\n"; } EOS - system ENV.cxx, "-std=c++11", "-I#{include}", "-L#{lib}", "-labsl_strings", + system ENV.cxx, "-std=c++17", "-I#{include}", "-L#{lib}", "-labsl_strings", "test.cc", "-o", "test" assert_equal "Joined string: foo-bar-baz\n", shell_output("#{testpath}/test") end