{"id":19036161,"url":"https://github.com/tx7do/test_cxx20_coroutine","last_synced_at":"2025-10-18T20:38:05.253Z","repository":{"id":112433733,"uuid":"578966572","full_name":"tx7do/test_cxx20_coroutine","owner":"tx7do","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-16T13:10:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T05:32:16.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tx7do.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-16T10:20:13.000Z","updated_at":"2022-12-16T11:37:25.000Z","dependencies_parsed_at":"2023-06-26T01:53:21.181Z","dependency_job_id":null,"html_url":"https://github.com/tx7do/test_cxx20_coroutine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Ftest_cxx20_coroutine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Ftest_cxx20_coroutine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Ftest_cxx20_coroutine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Ftest_cxx20_coroutine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tx7do","download_url":"https://codeload.github.com/tx7do/test_cxx20_coroutine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093142,"owners_count":19746774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T21:53:38.143Z","updated_at":"2025-10-18T20:38:05.167Z","avatar_url":"https://github.com/tx7do.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test_cxx20_coroutine\r\n\r\nGCC 10以及以上支持，以下的版本不支持。\r\n\r\n需要包含`-fcoroutines`标识符，否则不能使用协程功能。\r\n\r\ncmake当中加入标识符有以下方式：\r\n\r\n```cmake\r\nset(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -fcoroutines\")\r\n\r\nadd_compile_options(\u003ctarget\u003e \"-fcoroutines\")\r\n\r\ntarget_compile_options(\u003ctarget\u003e PRIVATE \"-fcoroutines\")\r\n\r\ntarget_add_compile_flags_if_supported(\u003ctarget\u003e PRIVATE -fcoroutines)\r\n```\r\n\r\n## 参考资料\r\n\r\n- [Your first coroutine](https://blog.panicsoftware.com/your-first-coroutine/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Ftest_cxx20_coroutine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftx7do%2Ftest_cxx20_coroutine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Ftest_cxx20_coroutine/lists"}