aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2022-11-04 13:57:18 +0000
committerJoe Ramsay <joe.ramsay@arm.com>2022-11-04 13:57:18 +0000
commit617d26f6fdbeb1f2a5567869ac94642ad0c6e6fa (patch)
treec39b923a576517c3e50e4978950452ac484bfd28 /config.mk.dist
parent5086aa1065bc0d6d2f32051fc849d2804415b812 (diff)
downloadarm-optimized-routines-617d26f6fdbeb1f2a5567869ac94642ad0c6e6fa.tar.gz
Add WANT_ERRNO config option
This makes it easier for users to toggle errno off and on, and also makes it possible to toggle the behaviour of our tests depending on whether we expect errno to be set properly or not.
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.mk.dist b/config.mk.dist
index b29a9b0..25cfdca 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -69,6 +69,12 @@ ifeq ($(WANT_SVE_MATH), 1)
endif
math-cflags += -DWANT_SVE_MATH=$(WANT_SVE_MATH)
+# If defined to 1, set errno in math functions according to ISO C. Many math
+# libraries do not set errno, so this is 0 by default. It may need to be
+# set to 1 if math.h has (math_errhandling & MATH_ERRNO) != 0.
+WANT_ERRNO = 0
+math-cflags += -DWANT_ERRNO=$(WANT_ERRNO)
+
# Disable fenv checks
#math-ulpflags = -q -f
#math-testflags = -nostatus