You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ATFE] Improve error handling and header optimisation in common header generation logic. (#456)
This patch introduces additional error checking and handle edge cases in
common header generation script.
1. Adds a check to handle cases where the multilib folder is either
empty or does not exist, avoiding unhandled exceptions.
2. Improves logic by allowing header optimisation to proceed for targets
that have more than two variants, even if another target lacks
sufficient variants for a comparison. These changes ensure the script
can still performing valid optimisations where possible.
3. Copying multilib.yaml can be moved outside the loop, as it only needs
to be done once after all target folders are generated.
(cherry picked from commit 256be48)
f"Skipping extracting the common headers for {target}: not enough variants to compare.At least two variants must be enabled for the multilib header optimisation phase to proceed."
94
+
f"Skipping extracting the common headers for {target}: not enough variants to compare. "
95
+
"At least two variants must be enabled for the multilib header optimisation phase to proceed."
77
96
)
78
97
# The script always creates the multilib-optimised folder, even when there's only one variant and no
79
98
# optimization is applied. In that case, multilib-optimised will just contain a copy of the
80
99
# single variant from the non-optimised multilib directory.
0 commit comments