From 8f03e2264da6b95fa5b01dd89cdd5b499458d428 Mon Sep 17 00:00:00 2001 From: Pratik Chowdhury Date: Tue, 4 May 2021 02:47:06 +0530 Subject: [PATCH] [asio] Add inline dummy return patch (#17611) --- ports/asio/inline_dummy_return.patch | 13 +++++++++++++ ports/asio/portfile.cmake | 2 ++ ports/asio/vcpkg.json | 1 + versions/a-/asio.json | 5 +++++ versions/baseline.json | 2 +- 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ports/asio/inline_dummy_return.patch diff --git a/ports/asio/inline_dummy_return.patch b/ports/asio/inline_dummy_return.patch new file mode 100644 index 0000000000..7df7ca641e --- /dev/null +++ b/ports/asio/inline_dummy_return.patch @@ -0,0 +1,13 @@ +diff --git a/asio/include/asio/impl/use_awaitable.hpp b/asio/include/asio/impl/use_awaitable.hpp +index 60a6f5cd..af7be635 100644 +--- a/asio/include/asio/impl/use_awaitable.hpp ++++ b/asio/include/asio/impl/use_awaitable.hpp +@@ -236,7 +236,7 @@ T dummy_return() + } + + template <> +-void dummy_return() ++inline void dummy_return() + { + } + #endif // defined(_MSC_VER) diff --git a/ports/asio/portfile.cmake b/ports/asio/portfile.cmake index 09bd3402c0..af3683874e 100644 --- a/ports/asio/portfile.cmake +++ b/ports/asio/portfile.cmake @@ -6,6 +6,8 @@ vcpkg_from_github( REF asio-1-18-1 SHA512 c84e6fca448ed419a976756840f3f4543291a5a7d4f62d4de7c06945b2cd9ececca6633049ad5e36367d60f67a4f2735be017445514ae9fa9497d4af2a4d48f8 HEAD_REF master + PATCHES + inline_dummy_return.patch ) # Always use "ASIO_STANDALONE" to avoid boost dependency diff --git a/ports/asio/vcpkg.json b/ports/asio/vcpkg.json index 38140acc53..076b4f6089 100644 --- a/ports/asio/vcpkg.json +++ b/ports/asio/vcpkg.json @@ -1,6 +1,7 @@ { "name": "asio", "version": "1.18.1", + "port-version": 1, "description": "Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.", "homepage": "https://github.com/chriskohlhoff/asio", "documentation": "https://think-async.com/Asio/asio-1.18.0/doc/", diff --git a/versions/a-/asio.json b/versions/a-/asio.json index d9e24002c3..abb5129252 100644 --- a/versions/a-/asio.json +++ b/versions/a-/asio.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "09afe8ce875f1c4e5e46d54c7c8bd5d0b9b512fc", + "version": "1.18.1", + "port-version": 1 + }, { "git-tree": "f564160afbc91228b0fe5c48f8f4c0b7dcd99b31", "version": "1.18.1", diff --git a/versions/baseline.json b/versions/baseline.json index 5f11b1b2d0..c894511d7e 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -154,7 +154,7 @@ }, "asio": { "baseline": "1.18.1", - "port-version": 0 + "port-version": 1 }, "asiosdk": { "baseline": "2.3.3-1",