From 6e6125e32b5d076e33d7f26459ad0f92ce54bbf6 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Wed, 13 Sep 2023 00:56:52 -0400 Subject: [PATCH] make : fix clang++ detection --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a774dc50f..82d239aef 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,7 @@ MK_CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wmissing-prototypes -Werror=implicit-int -Wno-unused-function MK_CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -ifeq '' '$(findstring clang++,$(CXX))' +ifeq '' '$(findstring clang,$(shell $(CXX) --version))' # g++ only MK_CXXFLAGS += -Wno-format-truncation -Wno-array-bounds endif