Skip to content

Building on macOS #1763

@TarekSalama

Description

@TarekSalama

On M4 Macbook. Trying to compile and I got this error when I ran ./configure --compiler="$(brew --prefix llvm)/bin/clang" --download-nyan

The compiler doesn't support required C++20 features:
  * Concepts
  * Default comparisons
The following versions support these features:
  * clang++ >= 10
  * g++ >= 10
  * Microsoft Visual Studio 2019 >= 16.8
Please upgrade your compiler to build openage.


CMake Error at buildsystem/CheckCompilerFeatures.cmake:57 (message):
  aborting
Call Stack (most recent call first):
  CMakeLists.txt:174 (include)

I tried this earlier and it seems like it should compile but I am unsure what's going on:

(brew --prefix llvm)/bin/clang++ -std=c++20 /Users/tarek/Downloads/test.cpp  -o test_cpp20
tarek@Mac openage % ./test_cpp20
Testing Concept: 6
Testing Comparison (p1 < p2): true
Testing Comparison (p1 == p1): true

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildsystemRelated to our cmake/python buildsystembugBehaving differently as it should behavelang: cmakewritten the CMake buildsystemos: macosmacOS-specific issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions