commit ec378d87b20762a3c37a0b7b31b78e1d0ade9e8c
parent 6a881572a84a4eb07b2089c66558cd1112213f4f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 28 Dec 2024 12:41:32 +0100
build: Fix no caret options
Caret messages are too annoying.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/build/tool/clang.mk b/scripts/build/tool/clang.mk
@@ -1,5 +1,6 @@
include $(BUILDDIR)/tool/gnu.mk
+NOCARET = -fno-caret-diagnostics
TOOL_ASFLAGS = -c
COMP = clang
diff --git a/scripts/build/tool/gnu.mk b/scripts/build/tool/gnu.mk
@@ -7,9 +7,10 @@ RANLIB = ranlib
ARCHIVE = ar
PRECOMP = cpp
+NOCARET = -fno-diagnostics-show-caret
ARCHIVE_FLAGS = -U
NOPIE_CFLAGS = -fno-pie
-TOOL_CFLAGS = -std=c99 $(PROFILE_CFLAGS)
+TOOL_CFLAGS = -std=c99 $(PROFILE_CFLAGS) $(NOCARET)
TOOL_LDFLAGS = -static
TOOL_LDLIBS = $(PROFILE_LDLIBS)
TOOL_LIBC_CFLAGS = -fno-stack-protector -ffreestanding