diff --git a/cmake/aurora_core.cmake b/cmake/aurora_core.cmake index d3b1b398b0..70c8ea958d 100644 --- a/cmake/aurora_core.cmake +++ b/cmake/aurora_core.cmake @@ -56,6 +56,7 @@ if (AURORA_ENABLE_GX) target_compile_definitions(aurora_core PRIVATE DAWN_ENABLE_BACKEND_METAL) target_sources(aurora_core PRIVATE lib/dawn/MetalBinding.mm) set_source_files_properties(lib/dawn/MetalBinding.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) + target_link_options(aurora_core PUBLIC "LINKER:-weak_framework,Metal") endif () if (DAWN_ENABLE_D3D11) target_compile_definitions(aurora_core PRIVATE DAWN_ENABLE_BACKEND_D3D11) diff --git a/lib/dawn/MetalBinding.mm b/lib/dawn/MetalBinding.mm index e691612b8c..421bd9e609 100644 --- a/lib/dawn/MetalBinding.mm +++ b/lib/dawn/MetalBinding.mm @@ -1,19 +1,6 @@ #include "BackendBinding.hpp" #import - -// Shim for macOS 15+ Metal classes to allow running on macOS 14 -#ifndef __MAC_15_0 -@interface MTLLogStateDescriptor : NSObject -@end -@implementation MTLLogStateDescriptor -@end -@interface MTLLogState : NSObject -@end -@implementation MTLLogState -@end -#endif - #include namespace aurora::webgpu::utils {