From 2ec81876eb59bb3e7c544774aa222988c1f574c4 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 10 Jun 2024 22:43:34 +0200 Subject: Fix build errors on OpenBSD --- configure.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.sh') diff --git a/configure.sh b/configure.sh index 60e375a..d5586db 100755 --- a/configure.sh +++ b/configure.sh @@ -2,8 +2,13 @@ cc=${CC:-cc} -detectarch() { ${cc} -march=native -dM -E - /dev/null | grep "$1" +} +detectsan() { + ${cc} -fsanitize=$1 -dM -E -x c - /dev/null \ + | grep "SANITIZE" +} [ -n "$(detectarch __AVX2__)" ] && detected="AVX2" [ -n "$(detectarch __ARM_NEON)" ] && detected="NEON" -- cgit v1.3