Skip to content

Commit 7725f0e

Browse files
committed
Arm backend: aot_arm_compiler.py support budleio output without a path
BundleIO output generation needed a the output file to exist in a folder, so if you wanted to output a file in the current folder you neeed to add "./" in front of the file name like "./file.bpte" this fixes this problem, normal .pte already support this. Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com> Change-Id: I8cb941cc068383619a51aaf79e88b59b7e4ad901
1 parent 2c545f8 commit 7725f0e

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)