make : do not pass compiler-specific options to nvcc

We don't know for sure whether nvcc calls gcc or clang.
This commit is contained in:
Cebtenzzre 2023-09-15 17:21:37 -04:00
parent 86170e0374
commit 141c645fc4

View file

@ -183,11 +183,11 @@ TTFS_CXXFLAGS = $(CXXFLAGS) -Wno-missing-declarations
ifneq '' '$(findstring clang,$(shell $(CXX) --version))'
# clang++ only
MK_CXXFLAGS += -Wmissing-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