From 141c645fc405678b3f1c65564d899b1c9bd8fbb8 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Fri, 15 Sep 2023 17:21:37 -0400 Subject: [PATCH] make : do not pass compiler-specific options to nvcc We don't know for sure whether nvcc calls gcc or clang. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7c35be556..dd483e7bb 100644 --- a/Makefile +++ b/Makefile @@ -183,11 +183,11 @@ TTFS_CXXFLAGS = $(CXXFLAGS) -Wno-missing-declarations ifneq '' '$(findstring clang,$(shell $(CXX) --version))' # clang++ only - MK_CXXFLAGS += -Wmissing-prototypes - TTFS_CXXFLAGS += -Wno-missing-prototypes + MK_HOST_CXXFLAGS += -Wmissing-prototypes + TTFS_CXXFLAGS += -Wno-missing-prototypes else # g++ only - MK_CXXFLAGS += -Wno-format-truncation -Wno-array-bounds + MK_HOST_CXXFLAGS += -Wno-format-truncation -Wno-array-bounds endif # OS specific