Skip to content

Commit 3870042

Browse files
authored
Merge pull request #78 from aupadhyay/fix/metal-coregraphics-linkage
fix: link CoreGraphics framework for Metal device detection
2 parents 1e0bec4 + b9cf69d commit 3870042

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cake-core/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
fn main() {
2+
#[cfg(feature = "metal")]
3+
{
4+
println!("cargo:rustc-link-lib=framework=CoreGraphics");
5+
}
26
#[cfg(feature = "vulkan")]
37
{
48
println!("cargo::rerun-if-changed=src/backends/vulkan/ops.wgsl");

0 commit comments

Comments
 (0)