aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-31 13:15:46 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-31 13:15:46 -0400
commit51169f770d228c855c7fb849ace6313c3f04853c (patch)
tree2a7b150effdf5ed24519988518754d55117312ec
parent530b91d9e756830abffce9d96ed995e0fe3302b0 (diff)
Fix for clang unused flag warning
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95f07128..10d7b84a 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ include config.mk
CC=$(DEFAULT_C_COMPILER)
CCONFIG=-std=c2x -fPIC \
- -fno-signed-zeros -fno-finite-math-only -fno-trapping-math \
+ -fno-signed-zeros -fno-trapping-math \
-fvisibility=hidden -fdollars-in-identifiers \
-DGC_THREADS
LTO=
@@ -61,6 +61,10 @@ ifeq ($(shell $(CC) -v 2>&1 | grep -c "gcc version"), 1)
CCONFIG += -fsanitize=signed-integer-overflow -fno-sanitize-recover -fno-signaling-nans
endif
+ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
+ CCONFIG += -fno-finite-math-only
+endif
+
OS := $(shell uname -s)
OSFLAGS != case $(OS) in *BSD|Darwin) echo '-D_BSD_SOURCE';; Linux) echo '-D_GNU_SOURCE';; *) echo '-D_DEFAULT_SOURCE';; esac