Skip to content

Compiling from source on macOS: clang must be used and not gcc #152

Open
@saxbophone

Description

@saxbophone

The requirement to "use native compilers" is only mentioned in the instructions for cmake-gui, a tool which is not available on macOS, therefore this build requirement may be missed by those looking to build SFML on macOS with gcc: SFML/SFML#1229 (comment)

This won't trip up anyone who just runs cmake from command-line without deliberately overriding the compilers, however overriding the compilers by setting variables CC and CXX is common with cmake, there is no reason to expect it to not work when switching clang to gcc, two compilers which maintain a high degree of interface-compatibility with eachother as far as the build system is concerned (mostly identical option flags). So it will be useful to document that SFML is tied to clang on macOS.

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