From 299ac7394fff8acab2c5818fae7c23813445921c Mon Sep 17 00:00:00 2001 From: Sebastian Larsson Date: Fri, 11 Sep 2026 10:02:55 +0200 Subject: [PATCH] Arm backend: Remove deprecated AOT compiler wrapper Remove examples/arm/aot_arm_compiler.py, deprecated in ExecuTorch 1.3. Use backends.arm.scripts.aot_arm_compiler instead. Change-Id: I49c377c960713649b04dcddd75f15f0af8b4b9ca Signed-off-by: Sebastian Larsson --- examples/arm/aot_arm_compiler.py | 39 -------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 examples/arm/aot_arm_compiler.py diff --git a/examples/arm/aot_arm_compiler.py b/examples/arm/aot_arm_compiler.py deleted file mode 100644 index 24973b274c9..00000000000 --- a/examples/arm/aot_arm_compiler.py +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# Copyright 2023-2026 Arm Limited and/or its affiliates. -# -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. - -"""Deprecated compatibility wrapper for the Arm AOT compiler CLI. - -This script has been moved to -``executorch/backends/arm/scripts/aot_arm_compiler.py``. -""" - -import sys -import warnings - -from pathlib import Path - -# Add Executorch root to path so this script can be run from anywhere -_EXECUTORCH_DIR = Path(__file__).resolve().parents[2] -_EXECUTORCH_DIR_STR = str(_EXECUTORCH_DIR) -if _EXECUTORCH_DIR_STR not in sys.path: - sys.path.insert(0, _EXECUTORCH_DIR_STR) - -from backends.arm.scripts.aot_arm_compiler import main as _main - - -def main() -> None: - warnings.warn( - "examples/arm/aot_arm_compiler.py is deprecated and has moved to " - "backends/arm/scripts/aot_arm_compiler.py.", - DeprecationWarning, - stacklevel=2, - ) - _main() - - -if __name__ == "__main__": - main()