#20641 made building of the qt
package in depends more structured, and, particularly, fixed cross-compiling detection on Intel-based macOS (x86_64).
However, a similar issue still present on M1-based macOS (arm64):
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) 12.0.5
7Configuration: cross_compile largefile neon precompile_header silent release c++11 c++14 c++1z reduce_exports static stl
8...
Note an unexpected cross_compile
.
0% make -C depends qt_configured HOST=x86_64-apple-darwin18
1...
2Configure summary:
3
4Build type: macx-clang (x86_64, CPU features: cx16 mmx sse sse2 sse3 ssse3 sse4.1)
5Compiler: clang (Apple) 12.0.5
6Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl f16c largefile precompile_header rdrnd shani silent x86SimdAlways release c++11 c++14 c++1z reduce_exports static stl
7...
Note that the build system failed to detect cross compiling.
In both cases building the configured qt
package fails without installed Rosetta 2 (see #22402).
This PR:
- fixes both cases above
- makes #22402 no longer required, and reverts it
- does not change the build system behavior on Intel-based macOS (x86_64)
- does not touch the code for cross-compiling on Linux builder, see a dedicated #21851
With this PR:
0% make -j 9 -C depends qt_configured
1...
2Configure summary:
3
4Build type: macx-clang (arm64, CPU features: neon crc32)
5Compiler: clang (Apple) 12.0.5
6Configuration: largefile neon precompile_header silent release c++11 c++14 c++1z reduce_exports static stl
7...
0% make -j 9 -C depends qt_configured HOST=x86_64-apple-darwin18
1...
2Configure summary:
3
4Building on: macx-clang (arm64, CPU features: neon crc32)
5Building for: macx-clang (x86_64, CPU features: cx16 mmx sse sse2 sse3 ssse3 sse4.1)
6Target compiler: clang (Apple) 12.0.5
7Configuration: cross_compile sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl f16c largefile precompile_header rdrnd shani silent x86SimdAlways release c++11 c++14 c++1z reduce_exports static stl
8...
This PR is based on #22506.