From 1a8a8bc3e2ebd9c282db8131902f9bb5de8c03cb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 26 Apr 2025 23:26:01 -0400 Subject: Minor tweaks --- src/tomo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tomo.c b/src/tomo.c index 3c5b1c55..48e554b7 100644 --- a/src/tomo.c +++ b/src/tomo.c @@ -69,6 +69,7 @@ static OptionalBool_t verbose = false, static OptionalText_t show_codegen = NONE_TEXT, cflags = Text("-Werror -fdollars-in-identifiers -std=c2x -Wno-trigraphs -Wno-parentheses-equality " + " -ffunction-sections -fdata-sections" " -fno-signed-zeros -fno-finite-math-only " " -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -fPIC -ggdb" #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) @@ -204,7 +205,7 @@ int main(int argc, char *argv[]) return 0; } - bool is_gcc = (system(String(cc, " -v 2>&1 | grep 'gcc version' >/dev/null")) == 0); + 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")); -- cgit v1.2.3