From d9554c06ec1d5df8ec4514f565a5b95c97199ece Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 13 Dec 2023 17:37:26 +0000 Subject: [PATCH] arrayfire: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/a/arrayfire.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/a/arrayfire.rb b/Formula/a/arrayfire.rb index a3deb245c047..acd0fce0c547 100644 --- a/Formula/a/arrayfire.rb +++ b/Formula/a/arrayfire.rb @@ -66,7 +66,7 @@ def install cp pkgshare/"examples/helloworld/helloworld.cpp", testpath/"test.cpp" system ENV.cxx, "-std=c++11", "test.cpp", "-L#{lib}", "-laf", "-lafcpu", "-o", "test" # OpenCL does not work in CI. - return if Hardware::CPU.arm? && MacOS.version >= :monterey && ENV["HOMEBREW_GITHUB_ACTIONS"].present? + return if Hardware::CPU.arm? && OS.mac? && MacOS.version >= :monterey && ENV["HOMEBREW_GITHUB_ACTIONS"].present? assert_match "ArrayFire v#{version}", shell_output("./test") end