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:
parent
86170e0374
commit
141c645fc4
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -183,11 +183,11 @@ TTFS_CXXFLAGS = $(CXXFLAGS) -Wno-missing-declarations
|
||||||
|
|
||||||
ifneq '' '$(findstring clang,$(shell $(CXX) --version))'
|
ifneq '' '$(findstring clang,$(shell $(CXX) --version))'
|
||||||
# clang++ only
|
# clang++ only
|
||||||
MK_CXXFLAGS += -Wmissing-prototypes
|
MK_HOST_CXXFLAGS += -Wmissing-prototypes
|
||||||
TTFS_CXXFLAGS += -Wno-missing-prototypes
|
TTFS_CXXFLAGS += -Wno-missing-prototypes
|
||||||
else
|
else
|
||||||
# g++ only
|
# g++ only
|
||||||
MK_CXXFLAGS += -Wno-format-truncation -Wno-array-bounds
|
MK_HOST_CXXFLAGS += -Wno-format-truncation -Wno-array-bounds
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# OS specific
|
# OS specific
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue