Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always build Qt host tools with host CPU arch (google#1122)
This follows up to my previous commit [1], which enabled build_qt.py to build Qt6 for a CPU architecture other than the host architecture on macOS environment. Starting from Qt 6.8.0 it seems that Qt host tools need to be specified via QT_HOST_PATH when running configure when cross compiling. To adopt such a requirement, Qt6 will be built as follows with this commit. 1. Build Qt host tools first with statically linking to Qt libraries. 2. Build Qt for the target architecture with the above bootstrapping Qt host tools. 3. Copy Qt host tools into third_party/qt/ Note that the above approach is not limited to macOS. In practice we can now build Qt6 for non-host CPU architecture even on Windows. There must be no behavior change in the final artifacts. Closes google#1121. [1]: 2f68b50 PiperOrigin-RevId: 696781616
- Loading branch information