net-im/telegram-desktop: unbreak build on FreeBSD versions with base LLVM < 16
Minimal required LLVM version to build is 16 now. It is stated on the clang release page, that the proposals for doing these kinds of captures are implemented in Clang16 Error example: /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1249:9: error: reference to local binding 'index' declared in enclosing lambda expression if (index >= list.size()) { ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1246:29: note: 'index' declared here for (const auto [command, index] : accounts) { ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1252:31: error: reference to local binding 'index' declared in enclosing lambda expression const auto account = list[index]; ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1246:29: note: 'index' declared here for (const auto [command, index] : accounts) { ^ 2 errors generated. Reported by: Benjamin Takacs <nimaje+fbz@bureaucracy.de>
This commit is contained in:
parent
f62e56bfe5
commit
879ed08884
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ TELEGRAM_API_ID= 601761
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079
|
||||
USES+= llvm:max=15,build
|
||||
.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507)
|
||||
USES+= llvm:min=16,build
|
||||
.else
|
||||
USES+= compiler:c++20-lang
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue