Skip to content

Instantly share code, notes, and snippets.

@thalamus
Created December 18, 2020 15:34
Show Gist options
  • Save thalamus/c0e4f37bac9f12dd4394e10de151ca49 to your computer and use it in GitHub Desktop.
Save thalamus/c0e4f37bac9f12dd4394e10de151ca49 to your computer and use it in GitHub Desktop.
Homebrew QT M1 build
diff --git a/Formula/qt.rb b/Formula/qt.rb
index 7143eacf9f..ab1ab3304c 100644
--- a/Formula/qt.rb
+++ b/Formula/qt.rb
@@ -58,6 +58,27 @@ class Qt < Formula
-dbus-runtime
-proprietary-codecs
]
+ if Hardware::CPU.arm?
+ args = %W[
+ -verbose
+ -prefix #{prefix}
+ -release
+ -opensource -confirm-license
+ -system-zlib
+ -qt-libpng
+ -qt-libjpeg
+ -qt-freetype
+ -qt-pcre
+ -nomake examples
+ -nomake tests
+ -no-rpath
+ -pkg-config
+ -dbus-runtime
+ -skip qtwebengine
+ -no-assimp
+ QMAKE_APPLE_DEVICE_ARCHS=arm64
+ ]
+ end
system "./configure", *args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment