Skip to content

Commit ad22089

Browse files
projectgusdpgeorge
authored andcommitted
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>
1 parent 02b5d42 commit ad22089

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tools/autobuild/autobuild.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ git -C ${MICROPY_AUTOBUILD_MICROPYTHON_REPO}/lib/pico-sdk submodule update --ini
4848
########################################
4949
# Build all firmware
5050

51+
# Fail on some things which are warnings otherwise
52+
export MICROPY_MAINTAINER_BUILD=1
53+
5154
pushd ${MICROPY_AUTOBUILD_MICROPYTHON_REPO}
5255

5356
# build cross compiler

tools/ci.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ fi
99
# Ensure known OPEN_MAX (NO_FILES) limit.
1010
ulimit -n 1024
1111

12+
# Fail on some things which are warnings otherwise
13+
export MICROPY_MAINTAINER_BUILD=1
14+
1215
########################################################################################
1316
# general helper functions
1417

0 commit comments

Comments
 (0)