Skip to content

Clang 14.x ornery about std::experimental::coroutine_traits #204

@malachib

Description

@malachib

Environment:

  • Debian Bookworm x64
  • Qt 6.6.1
  • Android NDK 25.1.8937393
  • Clang v14.0.6 AARCH64 (provided in NDK)

While compiling for Android, we get:

support for std::experimental::coroutine_traits will be removed in LLVM 15; use std::coroutine_traits instead

Which promotes from a warning to an error. Workaround is to specify in CMakeLists.txt

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
    add_compile_options(-Wno-error=deprecated-experimental-coroutine)
endif()

Which gets us going, but presumably Clang 15+ that will fail. However, I see PRs in this repo which are using Clang 17. So who knows. All I know is my Android compile failed without the workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions