Lines 266-280
LLVM_PORT_SUFFIX= ${COMPILER_VERSION:C/.$//}
Link Here
|
266 |
.if ${COMPILER_VERSION} > ${LLVM_DEFAULT_VERSION} |
266 |
.if ${COMPILER_VERSION} > ${LLVM_DEFAULT_VERSION} |
267 |
# LLVM versions in ports are, in order, 70, 80 90, 10, 11, 12... where 10 > 90. [sic] |
267 |
# LLVM versions in ports are, in order, 70, 80 90, 10, 11, 12... where 10 > 90. [sic] |
268 |
. if ${LLVM_PORT_SUFFIX} < 70 |
268 |
. if ${LLVM_PORT_SUFFIX} < 70 |
|
|
269 |
# PR 261976 postgresql fails to build with LLVM 14 |
270 |
. if ${LLVM_PORT_SUFFIX} > 13 |
271 |
PG_LLVM_VERSION=13 |
272 |
PG_COMPILER_VERSION=13 |
273 |
. else |
269 |
PG_LLVM_VERSION=${LLVM_PORT_SUFFIX} |
274 |
PG_LLVM_VERSION=${LLVM_PORT_SUFFIX} |
270 |
PG_COMPILER_VERSION=${LLVM_PORT_SUFFIX} |
275 |
PG_COMPILER_VERSION=${LLVM_PORT_SUFFIX} |
|
|
276 |
. endif |
271 |
. else |
277 |
. else |
272 |
PG_LLVM_VERSION=11 |
278 |
PG_LLVM_VERSION=11 |
273 |
PG_COMPILER_VERSION=11 |
279 |
PG_COMPILER_VERSION=11 |
274 |
. endif |
280 |
. endif |
275 |
.else |
281 |
.else |
|
|
282 |
. if ${LLVM_PORT_SUFFIX} > 13 |
283 |
PG_LLVM_VERSION=13 |
284 |
PG_COMPILER_VERSION=13 |
285 |
. else |
276 |
PG_LLVM_VERSION=${LLVM_DEFAULT} |
286 |
PG_LLVM_VERSION=${LLVM_DEFAULT} |
277 |
PG_COMPILER_VERSION=${LLVM_PORT_SUFFIX} |
287 |
PG_COMPILER_VERSION=${LLVM_PORT_SUFFIX} |
|
|
288 |
. endif |
278 |
.endif |
289 |
.endif |
279 |
|
290 |
|
280 |
.if ${DISTVERSION:C/([0-9]*).*/\1/} >= 11 |
291 |
.if ${DISTVERSION:C/([0-9]*).*/\1/} >= 11 |