Skip to content

Commit aad117b

Browse files
build: Add hidden WERROR_CFLAGS variable for testing and CI
1 parent 301d835 commit aad117b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

+3
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ if test x"$enable_valgrind" = x"yes"; then
355355
SECP_INCLUDES="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
356356
fi
357357

358+
# Add -Werror and similar flags passed from the outside (for testing, e.g., in CI)
359+
SECP_CFLAGS="$SECP_CFLAGS $WERROR_CFLAGS"
360+
358361
# Handle static precomputation (after everything which modifies CFLAGS and friends)
359362
if test x"$use_ecmult_static_precomputation" != x"no"; then
360363
if test x"$cross_compiling" = x"no"; then

0 commit comments

Comments
 (0)