Skip to content

zig cc failing to locate framework headers #16235

@danielchasehooper

Description

@danielchasehooper

Zig Version

0.11.0-dev.3395+1e7dcaa3a

Steps to Reproduce and Observed Behavior

open this zip file on macOS.
link_framework.zip

This succeeds:
$ clang -framework SDL2 -ISDL2.framework/Headers -F./ main.c

but this fails:

$ zig cc -framework SDL2 -ISDL2.framework/Headers -F./ main.c
In file included from main.c:8:
SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
#include <SDL2/SDL_main.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.

Expected Behavior

should match clang behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-macosmacOSzig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions