diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcoro/add-experimental-library.patch | |
Diffstat (limited to 'vcpkg/ports/libcoro/add-experimental-library.patch')
| -rw-r--r-- | vcpkg/ports/libcoro/add-experimental-library.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/libcoro/add-experimental-library.patch b/vcpkg/ports/libcoro/add-experimental-library.patch new file mode 100644 index 0000000..c2393f6 --- /dev/null +++ b/vcpkg/ports/libcoro/add-experimental-library.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a27a052..1a1e113 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,6 +14,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + link_libraries(-lc++) + endif() + ++# for C++20 std library (ex. std::stop_token) ++if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_NAME} MATCHES "Android") ++ add_compile_options(-fexperimental-library) ++endif() ++ + if(UNIX AND NOT APPLE) + set(LINUX TRUE) + endif() |