From 0901dfca8d01f7a77a8266ada68a2ad05518b2f0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 22 Dec 2024 14:09:41 -0500 Subject: [PATCH 1/2] cpp-gsl: update checksum and cmake build syntax Signed-off-by: Rui Chen --- Formula/c/cpp-gsl.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Formula/c/cpp-gsl.rb b/Formula/c/cpp-gsl.rb index c369c101fff40..b16cbf8a01286 100644 --- a/Formula/c/cpp-gsl.rb +++ b/Formula/c/cpp-gsl.rb @@ -2,7 +2,7 @@ class CppGsl < Formula desc "Microsoft's C++ Guidelines Support Library" homepage "https://github.com/Microsoft/GSL" url "https://github.com/Microsoft/GSL/archive/refs/tags/v4.1.0.tar.gz" - sha256 "14255cb38a415ba0cc4f696969562be7d0ed36bbaf13c5e4748870babf130c48" + sha256 "0a227fc9c8e0bf25115f401b9a46c2a68cd28f299d24ab195284eb3f1d7794bd" license "MIT" head "https://github.com/Microsoft/GSL.git", branch: "main" @@ -13,8 +13,9 @@ class CppGsl < Formula depends_on "cmake" => :build def install - system "cmake", ".", "-DGSL_TEST=false", *std_cmake_args - system "make", "install" + system "cmake", "-S", ".", "-B", "build", "-DGSL_TEST=false", *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do @@ -25,6 +26,7 @@ def install return 0; } CPP + system ENV.cxx, "test.cpp", "-o", "test", "-std=c++14" system "./test" end From f35520427fb34bd96b651ed9547a0f0e3c9eedd1 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:18:54 +0000 Subject: [PATCH 2/2] cpp-gsl: update 4.1.0 bottle. --- Formula/c/cpp-gsl.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/c/cpp-gsl.rb b/Formula/c/cpp-gsl.rb index b16cbf8a01286..31506e2007d56 100644 --- a/Formula/c/cpp-gsl.rb +++ b/Formula/c/cpp-gsl.rb @@ -7,7 +7,8 @@ class CppGsl < Formula head "https://github.com/Microsoft/GSL.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, all: "6370fc32875a61aef5e85f2eac5ea7c459f5dc5cbe665a27a20784bc9502daf8" + rebuild 1 + sha256 cellar: :any_skip_relocation, all: "4133296b6d12d22ecc2f1a9dce98820203355a2481cc4dbcbfb1d1e371551a8d" end depends_on "cmake" => :build