diff options
author | Mark Kriegsman <1334634+kriegsman@users.noreply.github.com> | 2022-04-10 17:41:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 17:41:19 +0300 |
commit | 274e017d43c78fea1cb3038da1cb19796cbdec51 (patch) | |
tree | a758c12f462d9aa948c41b092ebd6f3a091bd7d0 | |
parent | 4cb5522d29b0bf9258b45ed42f85157036f8fe09 (diff) | |
parent | 4fbd3f42eafd3e22689bf5be182d03ac14c5fc43 (diff) |
Merge pull request #1370 from sethtroisi/Wregister
Remove -Wregister warnings during CI
-rwxr-xr-x | ci/ci-compile | 12 | ||||
-rw-r--r-- | ci/ci-flags.py | 3 |
2 files changed, 10 insertions, 5 deletions
diff --git a/ci/ci-compile b/ci/ci-compile index 208a173a..a7a21f2c 100755 --- a/ci/ci-compile +++ b/ci/ci-compile @@ -8,12 +8,12 @@ # [BOARDS=boards] [EXAMPLES=examples] ./ci-compile # # e.g. -# $ ./compile-ci +# $ ./compile-ci # - compile all board/examples combinations # -# $ BOARDS="esp32 esp01" EXAMPLES=Blink ./compile-ci +# $ BOARDS="esp32 esp01" EXAMPLES=Blink ./compile-ci # - compile only Blink example for the esp32 and esp8266 platforms -# +# set -eou pipefail # List of examples that will be compiled by default @@ -30,7 +30,9 @@ BOARD_OPTS=$(for b in $BOARDS; do echo -n "--board $b "; done) cd "$DIR/.." -for d in $EXAMPLES ; do +export PLATFORMIO_EXTRA_SCRIPTS="pre:lib/ci/ci-flags.py" + +for d in $EXAMPLES ; do echo "*** building example $d for $BOARDS ***" - pio ci $BOARD_OPTS --lib=src "examples/$d/"*ino + pio ci $BOARD_OPTS --lib=ci --lib=src "examples/$d/"*ino done diff --git a/ci/ci-flags.py b/ci/ci-flags.py new file mode 100644 index 00000000..044fdb1c --- /dev/null +++ b/ci/ci-flags.py @@ -0,0 +1,3 @@ +Import("env") + +env.Append(CXXFLAGS=["-Wno-register"]) |