Skip to content

Commit 1c9989d

Browse files
committed
scripts: Add -Dwerror=true to test-picolibc
Make sure the library and tests build without errors. Signed-off-by: Keith Packard <[email protected]>
1 parent 95da57e commit 1c9989d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/test-picolibc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ for arch in arm riscv; do
1616
$test cd $DIR
1717

1818
echo '###################################'
19-
echo '####' ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true
19+
echo '####' ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true -Dwerror=true
2020
echo '###################################'
2121

22-
$test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true
22+
$test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true -Dwerror=true
2323
$test ninja test install
2424

2525
DIR=$PICOLIBC_DIR/builds/build-$arch-release
@@ -29,10 +29,10 @@ for arch in arm riscv; do
2929
$test cd $DIR
3030

3131
echo '###################################'
32-
echo '####' ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true --buildtype=release -Dbuild-type-subdir=release
32+
echo '####' ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true --buildtype=release -Dbuild-type-subdir=release -Dwerror=true
3333
echo '###################################'
3434

35-
$test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true --buildtype=release -Dbuild-type-subdir=release
35+
$test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true --buildtype=release -Dbuild-type-subdir=release -Dwerror=true
3636
$test ninja test install
3737

3838
done
@@ -46,7 +46,7 @@ for arch in arm riscv; do
4646
$test cd $DIR
4747

4848
echo '###################################'
49-
echo '####' ../../picolibc/do-$arch-configure --buildtype=minsize
49+
echo '####' ../../picolibc/do-$arch-configure --buildtype=minsize -Dwerror=true
5050
echo '###################################'
5151

5252
$test ../../picolibc/do-$arch-configure --buildtype=minsize
@@ -59,10 +59,10 @@ for arch in arm riscv; do
5959
$test cd $DIR
6060

6161
echo '###################################'
62-
echo '####' ../../picolibc/do-$arch-configure --buildtype=release -Dpicolibc-buildtype=release
62+
echo '####' ../../picolibc/do-$arch-configure --buildtype=release -Dpicolibc-buildtype=release -Dwerror=true
6363
echo '###################################'
6464

65-
$test ../../picolibc/do-$arch-configure --buildtype=release -Dpicolibc-buildtype=release
65+
$test ../../picolibc/do-$arch-configure --buildtype=release -Dpicolibc-buildtype=release -Dwerror=true
6666
$test ninja test
6767

6868
done

0 commit comments

Comments
 (0)