Skip to content

macos mixed C/C++ and Zig builds fail #7697

Description

@prime31

The last working zig version was 0.7.0 for mixed builds on macos. There have been various different errors since then but it seems the error has now stabilized so I figure I'll report it.

The test project is available here. Full steps to repro:

  • build zig from master (tested every few days since 0.7.0 dropped)
  • git clone --recursive https://github.com/prime31/zig-upaya/
  • cd zig-upaya
  • zig build empty

The resulting error seems to be a missing include path that has popped up after 0.7.0:

Compile C Objects [1/9] cimgui.cpp... error(compilation): clang failed with stderr: In file included from /Users/mikedesaro/zig-upaya/src/deps/sokol/compile_sokol.c:12:
/Users/mikedesaro/zig-upaya/src/deps/sokol/sokol/sokol_app.h:1088:17: fatal error: 'Metal/Metal.h' file not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-macosmacOS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions