vcpkg/ports/qt5-base/patches/qmake-arm64.patch
Pedro López-Cabanillas 1d6bcca58a
[qt5-base & qtbase] Fix error on arm64-windows (#41536)
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
2024-10-23 19:46:41 -07:00

19 lines
611 B
Diff

diff --git a/qmake/library/qmakeevaluator.cpp b/qmake/library/qmakeevaluator.cpp
index df3f92d7d5df..0ee8cdbf11e1 100644
--- a/qmake/library/qmakeevaluator.cpp
+++ b/qmake/library/qmakeevaluator.cpp
@@ -1046,6 +1046,11 @@ void QMakeEvaluator::loadDefaults()
case PROCESSOR_ARCHITECTURE_AMD64:
archStr = ProString("x86_64");
break;
+# endif
+# ifdef PROCESSOR_ARCHITECTURE_ARM64
+ case PROCESSOR_ARCHITECTURE_ARM64:
+ archStr = ProString("arm64");
+ break;
# endif
case PROCESSOR_ARCHITECTURE_INTEL:
archStr = ProString("x86");
--
2.16.3