aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist24
1 files changed, 22 insertions, 2 deletions
diff --git a/config.mk.dist b/config.mk.dist
index 177e1ac..7a84975 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -1,11 +1,14 @@
# Example config.mk
#
-# Copyright (c) 2018-2020, Arm Limited.
-# SPDX-License-Identifier: MIT
+# Copyright (c) 2018-2022, Arm Limited.
+# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
# Subprojects to build
SUBS = math string networking
+# Subsubprojects to build if subproject pl is built
+PLSUBS = math
+
# Target architecture: aarch64, arm or x86_64
ARCH = aarch64
@@ -59,6 +62,23 @@ math-cflags += -ffp-contract=fast -fno-math-errno
# Disable vector math code
#math-cflags += -DWANT_VMATH=0
+# Disable/enable SVE vector math code and tests
+WANT_SVE_MATH = 0
+ifeq ($(WANT_SVE_MATH), 1)
+ math-cflags += -march=armv8.2-a+sve
+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)
+
+# If set to 1, set fenv in vector math routines.
+WANT_SIMD_EXCEPT = 0
+math-cflags += -DWANT_SIMD_EXCEPT=$(WANT_SIMD_EXCEPT)
+
# Disable fenv checks
#math-ulpflags = -q -f
#math-testflags = -nostatus