update gcc-arm-none-eabi shim

This commit is contained in:
github-actions[bot]
2026-05-01 02:20:48 +00:00
commit 95a94097e4
3 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import os
import sys
TOOLCHAIN_DIR = os.path.join(os.path.dirname(__file__), "toolchain")
def _run(name):
binary = os.path.join(TOOLCHAIN_DIR, "bin", name)
os.execvp(binary, [binary] + sys.argv[1:])
def _run_gcc():
_run("arm-none-eabi-gcc")
def _run_objcopy():
_run("arm-none-eabi-objcopy")
def _run_size():
_run("arm-none-eabi-size")
def smoketest():
import subprocess
gcc = os.path.join(TOOLCHAIN_DIR, "bin", "arm-none-eabi-gcc")
subprocess.run([gcc, "--version"], check=True)