some follow-up for warnings experienced on macOS
This commit is contained in:
@@ -127,23 +127,22 @@ else # g++ or clang++ ?
|
|||||||
CCXX=clang++ -std=c++11
|
CCXX=clang++ -std=c++11
|
||||||
# get the version of clang++
|
# get the version of clang++
|
||||||
CLANGPPGTEQ9 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 9)
|
CLANGPPGTEQ9 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 9)
|
||||||
|
CLANGPPGTEQ11 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 11)
|
||||||
CLANGPPGTEQ14 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 14)
|
CLANGPPGTEQ14 := $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 14)
|
||||||
ifeq "$(CLANGPPGTEQ9)" "1"
|
ifeq "$(CLANGPPGTEQ9)" "1"
|
||||||
#CCXXFLAGS+=-Wformat-overflow
|
#CCXXFLAGS+=-Wformat-overflow
|
||||||
CCXXFLAGS+=-Wno-deprecated-copy
|
endif
|
||||||
endif # clang++ greater than or equal to 9
|
ifdef CPLUSPLUS_NEED_DEPSUPPRESS
|
||||||
ifeq "$(CLANGPPGTEQ14)" "1"
|
CCXXFLAGS+=-Wno-deprecated
|
||||||
CCXXFLAGS+=-Wno-deprecated-declarations
|
CCXXFLAGS+=-Wno-deprecated-declarations
|
||||||
endif # clang++ greater than or equal to 14
|
endif # CPLUSPLUS_NEED_DEPSUPPRESS
|
||||||
# The clang++ linker seems to have trouble linking if the following isn't
|
# The clang++ linker seems to have trouble linking if the following isn't
|
||||||
# included when compiling the C files by clang..
|
# included when compiling the C files by clang..
|
||||||
CFLAGS+=-fPIC
|
CFLAGS+=-fPIC
|
||||||
ifdef CPLUSPLUS_NEED17
|
ifdef CPLUSPLUS_NEED17
|
||||||
ifeq "$(CLANGPPGTEQ14)" "1"
|
ifeq "$(CLANGPPGTEQ14)" "1"
|
||||||
$(info greaterthanorequalto14)
|
|
||||||
CCXX=clang++ -std=c++20
|
CCXX=clang++ -std=c++20
|
||||||
else
|
else
|
||||||
$(info not greaterthanorequalto14)
|
|
||||||
CCXX=clang++ -std=c++17
|
CCXX=clang++ -std=c++17
|
||||||
endif # clang++ greater than or equal to 14
|
endif # clang++ greater than or equal to 14
|
||||||
endif # CPLUSPLUS_NEED17
|
endif # CPLUSPLUS_NEED17
|
||||||
|
|||||||
Reference in New Issue
Block a user