Skip to content

Commit 48953fc

Browse files
charles-dyfis-netmglambda
authored andcommitted
metal : avoid breaking build when metal API predates TARGET_OS_VISION (ggml-org#11690)
Avoids breakage in nix flake build introduced by b056913
1 parent 19359a9 commit 48953fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-metal/ggml-metal.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// max number of MTLCommandBuffer used to submit a graph for processing
2020
#define GGML_METAL_MAX_COMMAND_BUFFERS 8
2121

22+
#ifndef TARGET_OS_VISION
23+
#define TARGET_OS_VISION 0
24+
#endif
25+
2226
// create residency sets only on macOS >= 15.0
2327
#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
2428
TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \

0 commit comments

Comments
 (0)