diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-31 15:45:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-31 15:45:27 -0400 |
| commit | a571ccffd795a595e990a3405dcf977aafc33c6c (patch) | |
| tree | 5e7e8bf6bff3506ddeeff023d320d73258a09da8 | |
| parent | 2d6ec700cbfc8a18b60ccfba1ae49cb038967570 (diff) | |
Move compiler flag to GCC only
| -rw-r--r-- | src/tomo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,7 +81,7 @@ static OptionalBool_t verbose = false, quiet = false, show_version = false, show static OptionalText_t show_codegen = NONE_TEXT, cflags = Text("-Werror -fdollars-in-identifiers -std=c2x -Wno-trigraphs " " -ffunction-sections -fdata-sections" - " -fno-signed-zeros -fno-finite-math-only " + " -fno-signed-zeros " " -D_XOPEN_SOURCE -D_DEFAULT_SOURCE -fPIC -ggdb" #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) " -D_BSD_SOURCE" @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) { bool is_gcc = (system(String(cc, " -v 2>&1 | grep -q 'gcc version'")) == 0); if (is_gcc) { cflags = Texts(cflags, Text(" -fsanitize=signed-integer-overflow -fno-sanitize-recover" - " -fno-signaling-nans -fno-trapping-math")); + " -fno-signaling-nans -fno-trapping-math -fno-finite-math-only")); } bool is_clang = (system(String(cc, " -v 2>&1 | grep -q 'clang version'")) == 0); |
