tools: Add an environment variable MICROPY_MAINTAINER_BUILD.

This allows us to have some things which are fatal errors in CI or nightly
builds, but warnings in normal developer builds.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton
2025-09-03 15:44:10 +10:00
committed by Damien George
parent 02b5d42b24
commit ad22089581
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ git -C ${MICROPY_AUTOBUILD_MICROPYTHON_REPO}/lib/pico-sdk submodule update --ini
########################################
# Build all firmware
# Fail on some things which are warnings otherwise
export MICROPY_MAINTAINER_BUILD=1
pushd ${MICROPY_AUTOBUILD_MICROPYTHON_REPO}
# build cross compiler

View File

@@ -9,6 +9,9 @@ fi
# Ensure known OPEN_MAX (NO_FILES) limit.
ulimit -n 1024
# Fail on some things which are warnings otherwise
export MICROPY_MAINTAINER_BUILD=1
########################################################################################
# general helper functions