diff --git a/Formula/apache-arrow.rb b/Formula/apache-arrow.rb index b2800fdd22af..ece2782e6ffb 100644 --- a/Formula/apache-arrow.rb +++ b/Formula/apache-arrow.rb @@ -5,7 +5,7 @@ class ApacheArrow < Formula mirror "https://archive.apache.org/dist/arrow/arrow-4.0.1/apache-arrow-4.0.1.tar.gz" sha256 "75ccbfa276b925c6b1c978a920ff2f30c4b0d3fdf8b51777915b6f69a211896e" license "Apache-2.0" - revision 1 + revision 2 head "https://github.com/apache/arrow.git" bottle do @@ -30,9 +30,13 @@ class ApacheArrow < Formula depends_on "re2" depends_on "snappy" depends_on "thrift" + depends_on "utf8proc" depends_on "zstd" def install + # https://github.com/Homebrew/homebrew-core/issues/76537 + ENV.runtime_cpu_detection if Hardware::CPU.intel? + # link against system libc++ instead of llvm provided libc++ ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib args = %W[ @@ -51,6 +55,7 @@ def install -DARROW_WITH_LZ4=ON -DARROW_WITH_SNAPPY=ON -DARROW_WITH_BROTLI=ON + -DARROW_WITH_UTF8PROC=ON -DARROW_INSTALL_NAME_RPATH=OFF -DPYTHON_EXECUTABLE=#{Formula["python@3.9"].bin/"python3"} ] diff --git a/style_exceptions/runtime_cpu_detection_allowlist.json b/style_exceptions/runtime_cpu_detection_allowlist.json new file mode 100644 index 000000000000..994b9aee9e2c --- /dev/null +++ b/style_exceptions/runtime_cpu_detection_allowlist.json @@ -0,0 +1,3 @@ +[ + "apache-arrow" +]