Skip to content

clang-scan-deps is required for CMake 3.28 C++ 20 module support #21042

Closed

Description

@ShuangLiu1992

In
https://chromium.googlesource.com/emscripten-releases/+/refs/heads/main/src/build.py
clang-scan-deps is in the list of unneeded_tool, but it is required by cmake to scan dependencies of cxx 20 modules.
is it possible to include "clang-scan-deps" in emscripten releases?

Activity

  1. sbc100 commented on Jan 9, 2024

    @sbc100
    Collaborator

    Sounds reasonable to me. @dschuff WDYT?

  2. dschuff commented on Jan 9, 2024

    @dschuff
    Member

    Yeah, I think it would be fine to just add that to the emscripten-releases build.

  3. ShuangLiu1992 commented on Jan 10, 2024

    @ShuangLiu1992
    Author

    thank you

  4. sxstd001 commented on May 22, 2024

    @sxstd001

    Please provide detailed instructions on how to proceed? Specifically, how can I compile C++20 modules, and what is the proper configuration for CMake?

  5. sxstd001 commented on May 22, 2024

    @sxstd001

    **if I use Ninja in clion ide compiles wasm, errors: **
    clang++: error: unknown argument: '-fmodules-ts'
    clang++: error: unknown argument: '-fdeps-file=CMakeFiles/wasm.dir/main.cpp.o.ddi'
    clang++: error: unknown argument: '-fdeps-target=CMakeFiles/wasm.dir/main.cpp.o'
    clang++: error: unknown argument: '-fdeps-format=p1689r5'

  6. added a commit that references this issue on Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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