diff options
author | Angus Gratton <angus@redyak.com.au> | 2025-09-03 15:44:10 +1000 |
---|---|---|
committer | Angus Gratton <angus@redyak.com.au> | 2025-09-09 11:31:42 +1000 |
commit | 1c4455bfe703055155d40197b41a00cc37b04b35 (patch) | |
tree | fcab57c10f037e67bfc22c34bc869963cda5c021 | |
parent | 7dce35c7bea5c4c0dff0bb97b4dd4a989fd84fb2 (diff) |
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>
-rwxr-xr-x | tools/autobuild/autobuild.sh | 3 | ||||
-rwxr-xr-x | tools/ci.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/autobuild/autobuild.sh b/tools/autobuild/autobuild.sh index 7073152df..c24c4b3a9 100755 --- a/tools/autobuild/autobuild.sh +++ b/tools/autobuild/autobuild.sh @@ -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 diff --git a/tools/ci.sh b/tools/ci.sh index 1dfe3d66e..115442ffd 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -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 |