Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[boost-cobalt] Throw error in the configure step when the compiler is not supported #42738

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ports/boost-cobalt/fail-on-compiler-not-supported.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a51d5285c..8374f911a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ project(boost_cobalt VERSION "${BOOST_COBALT_VERSION}" LANGUAGES CXX)

include(cmake/CheckRequirements.cmake)
if (NOT BOOST_COBALT_REQUIREMENTS_MATCHED)
- return()
+ message(FATAL_ERROR "The current compiler is not supported.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break users who vcpkg install boost with a compiler without these features. I think the boost port should drop the dependency on boost-cobalt

endif()

set(BOOST_COBALT_IS_ROOT OFF)
1 change: 1 addition & 0 deletions ports/boost-cobalt/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ vcpkg_from_github(
REF boost-${VERSION}
SHA512 a92ff4050772b61035121f944d81d4a9d6d2da858dedc0956ad850132657c80c660a8839a99597443751744577dd5b0958239e99d948d3036c85b8361151aa27
HEAD_REF master
PATCHES fail-on-compiler-not-supported.patch
)

set(FEATURE_OPTIONS "")
Expand Down
1 change: 1 addition & 0 deletions ports/boost-cobalt/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-cobalt",
"version": "1.86.0",
"port-version": 1,
"description": "Boost cobalt module",
"homepage": "https://www.boost.org/libs/cobalt",
"license": "BSL-1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/boost-cobalt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7bdaafff0009d722146333ca46e95fd02a9577f0",
"version": "1.86.0",
"port-version": 1
},
{
"git-tree": "d45758e6c62b46ef436df6cffe7803dfc3ba8f10",
"version": "1.86.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@
},
"boost-cobalt": {
"baseline": "1.86.0",
"port-version": 0
"port-version": 1
},
"boost-compat": {
"baseline": "1.86.0",
Expand Down