Skip to content

Improving compilation instructions in COMPILING.md on mac #8683

Closed

Description

@HuStmpHrrr

I followed the instructions in COMPILING.md using cmake and was not able to compile cmbc on mac.

It appeared that the necessary cmake command should also specify a C++ compiler (clang), otherwise C++'s standard library won't be found. The following is the command line I used:

cmake -S. -Bbuild -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DWITH_JBMC=OFF

Activity

  1. tautschnig commented on Jul 15, 2025

    @tautschnig
    Collaborator

    Oh, indeed we are only talking about CMAKE_C_COMPILER. Can you please confirm that it was sufficient to use clang++, or did you have to use /usr/bin/clang++?

  2. HuStmpHrrr commented on Jul 15, 2025

    @HuStmpHrrr
    Author

    I can confirm that it runs without having to specify the whole path. the exact command above works for me.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions