On master (4018e23aa7e7bb57d721c7c41c55dfbb659b8c34) the Qt build system hard-coded the x86_64 as the architecture when using qmake.
This means that compiling the qt
package on M1 Apple Silicon for the same system, i.e., without providing the HOST
variable,—that is supposed to be compiled natively—is a cross-compiling actually:
0% make -C depends qt_configured
1...
2Configure summary:
3
4Building on: macx-clang (x86_64, CPU features: cx16 mmx sse sse2 sse3 ssse3 sse4.1)
5Building for: macx-clang (arm64, CPU features: neon crc32)
6Target compiler: clang (Apple) 13.0.0
7Configuration: cross_compile largefile neon precompile_header silent release c++11 c++14 c++1z reduce_exports static stl
8...
Also this bug caused another issue which currently is worked around by installing Rosetta.
With this PR it is no longer needed to have Rosetta installed on M1-based macOS, and:
0% make -C depends qt_configured
1...
2Configure summary:
3
4Build type: macx-clang (arm64, CPU features: neon crc32)
5Compiler: clang (Apple) 13.0.0
6Configuration: largefile neon precompile_header silent release c++11 c++14 c++1z reduce_exports static stl
7...