commit 8b9b5c6c5ccf763309949a3d64f6dad08a9860e4
parent 1b3a3f47ba94fc487050b84f73f9b0a597cabf0b
Author: Fabrice Bellard <fabrice@bellard.org>
Date: Wed, 13 Dec 2023 19:00:17 +0100
added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/quickjs/Makefile b/quickjs/Makefile
@@ -96,6 +96,7 @@ else
endif
endif
STRIP=$(CROSS_PREFIX)strip
+CFLAGS+=-fwrapv # ensure that signed overflows behave as expected
ifdef CONFIG_WERROR
CFLAGS+=-Werror
endif