Skip to content

Commit c1509b4

Browse files
committed
fixup! [ATFE] Make sure multilib-optimised directory created no earlier than the variant comparison step.
1 parent a979a54 commit c1509b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arm-software/embedded/arm-multilib/common-headers-generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ def extract_common_headers_for_targets(args):
6767
)
6868
continue
6969

70-
os.makedirs(output_include_dir, exist_ok=True)
71-
7270
variant_includes = collect_variant_include_paths(input_target_dir)
7371
if len(variant_includes) < 2:
7472
print(
7573
f"Skipping extracing 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."
7674
)
7775
return
7876

77+
os.makedirs(output_include_dir, exist_ok=True)
78+
7979
# Step 1: compare first two variants and extract the common headers into the targets common include directory
8080
base_dir = list(variant_includes.values())[0]
8181
compare_dir = list(variant_includes.values())[1]

0 commit comments

Comments
 (0)