diff mbox series

[FFmpeg-devel] Makefile: Prompt for reconfigure on lavc/hwaccels.h modification

Message ID DB6PR0101MB22148C557FD1FF0BC9E070288FB69@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit e9f2eb198bc4b2a623385ba55b169e0f975ccb87
Headers show
Series [FFmpeg-devel] Makefile: Prompt for reconfigure on lavc/hwaccels.h modification | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Andreas Rheinhardt June 26, 2022, 8:36 a.m. UTC
Adding a new AVHWAccel also adds a new CONFIG variable for it
and said config variables are typically used to calculate the
size of stack arrays. In such a context, an undefined CONFIG
variable does not evaluate to zero; instead it leads to
a compilation failure. Therefore treat this file like the other
files containing lists of configurable components and prompt
for reconfiguration if it is modified.

(E.g. a44fba0b5b3b4090f9238751736198ddd1f0f1d5 led to compilation
failures for me.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

Comments

Paul B Mahol June 26, 2022, 3:13 p.m. UTC | #1
OK
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 35365f09d4..61f79e27ae 100644
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,7 @@  tools/target_dem_%_fuzzer$(EXESUF): $(FF_DEP_LIBS)
 CONFIGURABLE_COMPONENTS =                                           \
     $(wildcard $(FFLIBS:%=$(SRC_PATH)/lib%/all*.c))                 \
     $(SRC_PATH)/libavcodec/bitstream_filters.c                      \
+    $(SRC_PATH)/libavcodec/hwaccels.h                               \
     $(SRC_PATH)/libavcodec/parsers.c                                \
     $(SRC_PATH)/libavformat/protocols.c                             \