Merge pull request #308 from fermionoid/fix-metal-clang16-std
Fix METAL=1 build on Apple clang 16: add -std=gnu++17 to METALXX
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ endif
|
||||
# runtime, so no Xcode / offline metal compiler is required. Default build unchanged.
|
||||
METAL ?= 0
|
||||
METAL_OBJ =
|
||||
METALXX = clang++ -x objective-c++ -fobjc-arc -O3
|
||||
METALXX = clang++ -x objective-c++ -std=gnu++17 -fobjc-arc -O3
|
||||
ifeq ($(METAL),1)
|
||||
ifeq (,$(DARWIN))
|
||||
$(error METAL=1 is supported only on macOS)
|
||||
|
||||
Reference in New Issue
Block a user