Skip to content

Commit d097da2

Browse files
committed
Enable side-effect free check in CI
1 parent b657f53 commit d097da2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.cirrus.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
BENCH: yes
1818
ITERS: 2
1919
MAKEFLAGS: -j2
20+
CHECK_SIDE_EFFECT_FREE: yes
2021

2122
cat_logs_snippet: &CAT_LOGS
2223
always:
@@ -64,7 +65,7 @@ task:
6465
- env: {BIGNUM: no, STATICPRECOMPUTATION: no}
6566
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no}
6667
- env: {CPPFLAGS: -DDETERMINISTIC}
67-
- env: {CFLAGS: -O0, CTIMETEST: no}
68+
- env: {CFLAGS: -O0, CTIMETEST: no, CHECK_SIDE_EFFECT_FREE: no}
6869
- env:
6970
CFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer"
7071
LDFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer"
@@ -93,6 +94,7 @@ task:
9394
CC: gcc
9495
- env:
9596
CC: clang
97+
CHECK_SIDE_EFFECT_FREE: auto
9698
<< : *MERGE_BASE
9799
test_script:
98100
- ./ci/cirrus.sh
@@ -115,6 +117,7 @@ task:
115117
CC: i686-linux-gnu-gcc
116118
- env:
117119
CC: clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include
120+
CHECK_SIDE_EFFECT_FREE: auto
118121
matrix:
119122
- env:
120123
BIGNUM: gmp
@@ -141,6 +144,7 @@ task:
141144
CC: gcc-9
142145
- env:
143146
CC: clang
147+
CHECK_SIDE_EFFECT_FREE: auto
144148
# Update Command Line Tools
145149
# Uncomment this if the Command Line Tools on the CirrusCI macOS image are too old to brew valgrind.
146150
# See https://apple.stackexchange.com/a/195963 for the implementation.

ci/cirrus.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ valgrind --version || true
1919
--enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \
2020
--enable-module-schnorrsig="$SCHNORRSIG" \
2121
--with-valgrind="$WITH_VALGRIND" \
22+
--enable-side-effect-free-check="$CHECK_SIDE_EFFECT_FREE" \
2223
--host="$HOST" $EXTRAFLAGS
2324

2425
# We have set "-j<n>" in MAKEFLAGS.

0 commit comments

Comments
 (0)