Skip to content

MSVC / clang-cl support #950

@MisterDA

Description

@MisterDA
Contributor

Hi! It would be nice if we could use the action with the MSVC / clang-cl port, restored in OCaml 5.3. The system-msvc opam package and the ilammy/msvc-dev-cmd action might help.
clang-cl is a drop-in replacement for cl.exe that's also installed in the GitHub workers. It's not clear if it would be easy to come up with a user-facing switch to use it. Maybe users could be allowed to set the CC env var?

Activity

changed the issue type fromtoon Mar 13, 2025
smorimoto

smorimoto commented on Mar 13, 2025

@smorimoto
Member

Thanks for your suggestion! I think adding a few clear examples to the existing EXAMPLES.md document should be sufficient to illustrate this use case. If users can follow a straightforward example or two, it should provide the necessary guidance without complicating things further.

MisterDA

MisterDA commented on Apr 7, 2025

@MisterDA
ContributorAuthor

I'm not sure examples are sufficient. Something that could help: how would you go about selecting another C compiler to build OCaml with setup-ocaml? Suppose you're on ubuntu-latest, but you'd rather use clang of GCC. How would you pass CC=clang to OCaml's configure script?

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

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @MisterDA@smorimoto

        Issue actions

          MSVC / clang-cl support · Issue #950 · ocaml/setup-ocaml