Created
December 18, 2020 15:34
-
-
Save thalamus/c0e4f37bac9f12dd4394e10de151ca49 to your computer and use it in GitHub Desktop.
Homebrew QT M1 build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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