View | Details | Raw Unified | Return to bug 244810
Collapse All | Expand All

(-)/usr/ports/Mk/Uses/compiler.mk (-3 / +7 lines)
Lines 8-13 Link Here
8
# c++11-lang:	The port needs a compiler understanding C++11
8
# c++11-lang:	The port needs a compiler understanding C++11
9
# c++14-lang:	The port needs a compiler understanding C++14
9
# c++14-lang:	The port needs a compiler understanding C++14
10
# c++17-lang:	The port needs a compiler understanding C++17
10
# c++17-lang:	The port needs a compiler understanding C++17
11
# c++20-lang:	The port needs a compiler understanding C++20
11
# gcc-c++11-lib:The port needs g++ compiler with a C++11 library
12
# gcc-c++11-lib:The port needs g++ compiler with a C++11 library
12
# c++11-lib:	The port needs a compiler understanding C++11 and with a C++11 ready standard library
13
# c++11-lib:	The port needs a compiler understanding C++11 and with a C++11 ready standard library
13
# c11:		The port needs a compiler understanding C11
14
# c11:		The port needs a compiler understanding C11
Lines 34-40 Link Here
34
compiler_ARGS=	env
35
compiler_ARGS=	env
35
.endif
36
.endif
36
37
37
VALID_ARGS=	c++11-lib c++11-lang c++14-lang c++17-lang c11 features openmp env nestedfct c++0x gcc-c++11-lib
38
VALID_ARGS=	c++11-lib c++11-lang c++14-lang c++17-lang c++20-lang c11 features openmp env nestedfct c++0x gcc-c++11-lib
38
39
39
_CC_hash:=	${CC:hash}
40
_CC_hash:=	${CC:hash}
40
_CXX_hash:=	${CXX:hash}
41
_CXX_hash:=	${CXX:hash}
Lines 51-56 Link Here
51
_COMPILER_ARGS+=	features c++14-lang
52
_COMPILER_ARGS+=	features c++14-lang
52
.elif ${compiler_ARGS} == c++17-lang
53
.elif ${compiler_ARGS} == c++17-lang
53
_COMPILER_ARGS+=	features c++17-lang
54
_COMPILER_ARGS+=	features c++17-lang
55
.elif ${compiler_ARGS} == c++20-lang
56
_COMPILER_ARGS+=	features c++20-lang
54
.elif ${compiler_ARGS} == c11
57
.elif ${compiler_ARGS} == c11
55
_COMPILER_ARGS+=	features c11
58
_COMPILER_ARGS+=	features c11
56
.elif ${compiler_ARGS} == features
59
.elif ${compiler_ARGS} == features
Lines 139-145 Link Here
139
.endif
142
.endif
140
143
141
CSTD=	c89 c99 c11 gnu89 gnu99 gnu11
144
CSTD=	c89 c99 c11 gnu89 gnu99 gnu11
142
CXXSTD=	c++98 c++0x c++11 c++14 c++17 gnu++98 gnu++11 gnu++14 gnu++17
145
CXXSTD=	c++98 c++0x c++11 c++14 c++17 c++20 gnu++98 gnu++11 gnu++14 gnu++17
143
146
144
.for std in ${CSTD} ${CXXSTD}
147
.for std in ${CSTD} ${CXXSTD}
145
_LANG=c
148
_LANG=c
Lines 169-175 Link Here
169
.endif
172
.endif
170
.endif
173
.endif
171
174
172
.if (${_COMPILER_ARGS:Mc++17-lang} && !${COMPILER_FEATURES:Mc++17}) || \
175
.if (${_COMPILER_ARGS:Mc++20-lang} && !${COMPILER_FEATURES:Mc++20}) || \
176
(${_COMPILER_ARGS:Mc++17-lang} && !${COMPILER_FEATURES:Mc++17}) || \
173
(${_COMPILER_ARGS:Mc++14-lang} && !${COMPILER_FEATURES:Mc++14}) || \
177
(${_COMPILER_ARGS:Mc++14-lang} && !${COMPILER_FEATURES:Mc++14}) || \
174
(${_COMPILER_ARGS:Mc++11-lang} && !${COMPILER_FEATURES:Mc++11}) || \
178
(${_COMPILER_ARGS:Mc++11-lang} && !${COMPILER_FEATURES:Mc++11}) || \
175
(${_COMPILER_ARGS:Mc++0x} && !${COMPILER_FEATURES:Mc++0x}) || \
179
(${_COMPILER_ARGS:Mc++0x} && !${COMPILER_FEATURES:Mc++0x}) || \

Return to bug 244810