make : fix apparent mis-merge from #3952
This commit is contained in:
parent
92fb52d456
commit
d42a8bf134
1 changed files with 0 additions and 24 deletions
24
Makefile
24
Makefile
|
@ -220,30 +220,6 @@ ifeq ($(LLAMA_FATAL_WARNINGS),1)
|
||||||
MK_CXXFLAGS += -Werror
|
MK_CXXFLAGS += -Werror
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CC_IS_CLANG), 1)
|
|
||||||
# clang options
|
|
||||||
MK_CFLAGS += -Wunreachable-code-break -Wunreachable-code-return
|
|
||||||
MK_HOST_CXXFLAGS += -Wunreachable-code-break -Wunreachable-code-return -Wmissing-prototypes -Wextra-semi
|
|
||||||
|
|
||||||
ifneq '' '$(and $(CC_IS_LLVM_CLANG),$(filter 1,$(shell expr $(CC_VER) \>= 030800)))'
|
|
||||||
MK_CFLAGS += -Wdouble-promotion
|
|
||||||
endif
|
|
||||||
ifneq '' '$(and $(CC_IS_APPLE_CLANG),$(filter 1,$(shell expr $(CC_VER) \>= 070300)))'
|
|
||||||
MK_CFLAGS += -Wdouble-promotion
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
# gcc options
|
|
||||||
MK_CFLAGS += -Wdouble-promotion
|
|
||||||
MK_HOST_CXXFLAGS += -Wno-array-bounds
|
|
||||||
|
|
||||||
ifeq ($(shell expr $(CC_VER) \>= 070100), 1)
|
|
||||||
MK_HOST_CXXFLAGS += -Wno-format-truncation
|
|
||||||
endif
|
|
||||||
ifeq ($(shell expr $(CC_VER) \>= 080100), 1)
|
|
||||||
MK_HOST_CXXFLAGS += -Wextra-semi
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this version of Apple ld64 is buggy
|
# this version of Apple ld64 is buggy
|
||||||
ifneq '' '$(findstring dyld-1015.7,$(shell $(CC) $(LDFLAGS) -Wl,-v 2>&1))'
|
ifneq '' '$(findstring dyld-1015.7,$(shell $(CC) $(LDFLAGS) -Wl,-v 2>&1))'
|
||||||
MK_CPPFLAGS += -DHAVE_BUGGY_APPLE_LINKER
|
MK_CPPFLAGS += -DHAVE_BUGGY_APPLE_LINKER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue