Details
-
User Story
-
Resolution: Done
-
P2: Important
-
None
-
None
-
f985f70cd534c4eeb255b885691e3c5b83f6e3f4
Description
Currently for the Qt6 CMake builds, when we build a cross-compiling configuration like iOS, we build a host Qt before building the target Qt, even though host Qt has been built before in a different configuration.
It is important that we-reuse the already-built host Qt from a specified configuration, rather than building it again.
Not just for performance reasons, but also for correctness.
In the Qt installer, we allow installing macOS, and installing iOS, and the iOS installation should use the same well-tested host macOS tools, which implies artifact re-usage.
Two possible approaches on how the user-facing API would look like.
Approach 1 (simpler, less flexible)
Host configurations are tagged with a "Host" Feature.
Target configurations are tagged with a "UseHost" Feature.
Example: Tag a Windows configuration with "Host", a macOS one, and a Linux one. We only really have 3 hosts.
Tag the iOS configurations with "UseHost", same for Android, and Embedded Linux ones.
When downloading the artifacts for the iOS configuration, the Agent will notice that the configuration is tagged with "UseHost", will check what's the Host OS is => macOS, and then will find and download/extract all artifacts of the macOS configuration tagged with "Host", for the appropriate SHA1.
This assumes that the macOS configuration has already been built, and if not, the configuration should wait until the Host one has finished.
Approach 2 (harder, more generic)
Host configurations are tagged with an ID field (similar to Host Os, Compiler, etc)
Target configurations have a new "UseID: X" field.
Most of the logic would be similar, except instead of the Host lookup of the same OS, you do it for the specified ID.
The advantage is that it allows multiple configuration to be "Host"s, and target configurations can use different "Host"s, thus allowing mix and matching.
Example: Host macOS 10.14 + iOS, Host macOS 10.15 + Developer-build + iOS.
Attachments
Issue Links
- depends on
-
QTBUG-83497 Fix rpath handling to enable relocatable builds
- Closed
- is required for
-
QTBUG-85623 Reuse host artifacts when cross-compiling in Coin
- Closed
-
QTBUG-85045 Enable running CMake on top-level qt5.git for cross-compiling configurations in Coin
- Closed
- relates to
-
COIN-455 support more steps than current Build and Test only
- Closed
For Gerrit Dashboard: COIN-553 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
296957,15 | Support platform dependencies | master | qtqa/tqtc-coin-ci | Status: MERGED | +2 | 0 |