summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-09-03 15:44:10 +1000
committerAngus Gratton <angus@redyak.com.au>2025-09-09 11:31:42 +1000
commit1c4455bfe703055155d40197b41a00cc37b04b35 (patch)
treefcab57c10f037e67bfc22c34bc869963cda5c021
parent7dce35c7bea5c4c0dff0bb97b4dd4a989fd84fb2 (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-xtools/autobuild/autobuild.sh3
-rwxr-xr-xtools/ci.sh3
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