[libgo] Fix boost-1.68

This commit is contained in:
Robert Schumacher 2018-08-15 09:30:44 -07:00
parent eae02c95b3
commit b901286329
3 changed files with 25 additions and 6 deletions

View File

@ -1,4 +1,4 @@
Source: libgo
Version: 2.8-1
Version: 2.8-2
Build-Depends: boost-context
Description: The best stackful coroutine by c++11.

View File

@ -0,0 +1,20 @@
diff --git a/libgo/ctx_boost_context/context.h b/libgo/ctx_boost_context/context.h
index 2db71c0..2f321fb 100644
--- a/libgo/ctx_boost_context/context.h
+++ b/libgo/ctx_boost_context/context.h
@@ -1,4 +1,4 @@
-#include <boost/context/all.hpp>
+#include <boost/context/execution_context.hpp>
#if BOOST_EXECUTION_CONTEXT == 2 // boost version >= 1.61
# include "context_v2.h"
diff --git a/libgo/ctx_boost_context/context_v2.h b/libgo/ctx_boost_context/context_v2.h
index e415af4..59e2e29 100644
--- a/libgo/ctx_boost_context/context_v2.h
+++ b/libgo/ctx_boost_context/context_v2.h
@@ -1,4 +1,4 @@
-#include <boost/context/all.hpp>
+#include <boost/context/stack_context.hpp>
namespace co
{

View File

@ -1,9 +1,6 @@
include(vcpkg_common_functions)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
message("libgo currently only supports static linkage")
set(VCPKG_LIBRARY_LINKAGE static)
endif()
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -11,7 +8,9 @@ vcpkg_from_github(
REF v2.8
SHA512 44784de4aec36ea321195c11c99a73de4f6f51285febdf6980e8aaced1fdfc0a34c6b1a8acc8c6b424e747310a1d7fb1604f722084c28ab91f8ebee15667d59b
HEAD_REF master
PATCHES ${CMAKE_CURRENT_LIST_DIR}/cmake.patch
PATCHES
cmake.patch
boost-168.patch
)
vcpkg_download_distfile(ARCHIVE