Skip to content

Please ship libclang.so #1605

Open
Open

Description

@elmarco

Rust bindgen tool relies on libclang shared library (configurable via CLANG_PATH + LIBCLANG_PATH).

A version can be installed from the ubuntu clang packages, but then there are 2 different versions of clang used for builds, which can be problematic.

Activity

  1. added a commit that references this issue on Sep 24, 2025
  2. sbc100 commented on Sep 24, 2025

    @sbc100
    Collaborator

    Sounds like a reason able request. I guess we need to work about ABI compatibility, but that sounds like a pre-existing problem for any program linking against libclang?

    Do you know how to enable and install libclang using CMake flags. The rules we use are here: https://chromium.googlesource.com/emscripten-releases/+/refs/heads/main/src/build.py#726

  3. sbc100 commented on Aug 15, 2026

    @sbc100
    Collaborator

    @dschuff how hard/costly would it be to start building/shipping libclang.so?

  4. dschuff commented on Aug 17, 2026

    @dschuff
    Member

    We are already shipping it in the non-release builds, since they are dylib builds. The release builds are statically linked and currently don't ship any dylibs.
    I'd have to look; I imagine it wouldn't be too hard to do at least on Linux on Mac, but less sure about Windows. I guess we'd probably need to ship some headers too; IIRC we don't currently.
    Regarding ABI compatibility, that's not something we can maintain across our releases currently, because we don't ship from release branches.

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