Skip to content

Commit 75ba558

Browse files
authored
Arm backend: aot_arm_compiler.py support BundleIO output file without a path (#18871)
BundleIO output generation needed the specified output file name to be supplied with a folder, so if you wanted to output a file in the current folder you needed to add "./" in front of the file name like "./file.bpte" this change fixes this problem, the normal .pte generation already supported this. Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>
1 parent a43675c commit 75ba558

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backends/arm/scripts/aot_arm_compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,8 @@ def _save_bpte_program(
778778

779779
# Generate BundledProgram
780780
output_dir = os.path.dirname(output_name)
781-
os.makedirs(output_dir, exist_ok=True)
781+
if output_dir:
782+
os.makedirs(output_dir, exist_ok=True)
782783
_save_bundled_program(exec_prog, method_test_suites, output_name)
783784

784785

0 commit comments

Comments
 (0)