Skip to content

Build fails on macOS 15 SDK: MTLGPUFamilyMetal4 undeclared #66

Description

@rideapandafly

h3_metal.m:43:51: error: use of undeclared identifier 'MTLGPUFamilyMetal4'; did you mean 'MTLGPUFamilyMetal3'?
43 | info->metal4 = [device supportsFamily:MTLGPUFamilyMetal4] ? 1 : 0;
| ^~~~~~~~~~~~~~~~~~
| MTLGPUFamilyMetal3
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h:222:5: note: 'MTLGPUFamilyMetal3' declared here
222 | MTLGPUFamilyMetal3 API_AVAILABLE(macos(13.0), ios(16.0)) = 5001,
| ^
1 error generated.
make: *** [h3_metal.o] Error 1
make: *** Waiting for unfinished jobs....

Please modify lines 42-44 of h3.c/h3_metal.m as follows:
#if defined(__MAC_26_0)
if (@available(macOS 26.0, *)) {
info->metal4 = [device supportsFamily:MTLGPUFamilyMetal4] ? 1 : 0;
}
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions