diff --git a/src/backend/metal/build.rs b/src/backend/metal/build.rs index a56f7cee96e..19425e76882 100644 --- a/src/backend/metal/build.rs +++ b/src/backend/metal/build.rs @@ -55,7 +55,7 @@ fn main() { out_path.set_extension("air"); let status = Command::new("xcrun") - .args(&["-sdk", sdk_name, "metal"]) + .args(&["-sdk", sdk_name, "metal", "-c"]) .arg(shader_path.as_os_str()) .arg("-o") .arg(out_path.as_os_str()) diff --git a/src/backend/metal/shaders/blit.metal b/src/backend/metal/shaders/blit.metal index 314063a1a59..9fcaf1c2b02 100644 --- a/src/backend/metal/shaders/blit.metal +++ b/src/backend/metal/shaders/blit.metal @@ -1,4 +1,4 @@ -#include "macros.metal" +#include "macros.h" #include using namespace metal; diff --git a/src/backend/metal/shaders/clear.metal b/src/backend/metal/shaders/clear.metal index bbc6cf89e9c..4adbdd3b565 100644 --- a/src/backend/metal/shaders/clear.metal +++ b/src/backend/metal/shaders/clear.metal @@ -1,4 +1,4 @@ -#include "macros.metal" +#include "macros.h" #include using namespace metal; diff --git a/src/backend/metal/shaders/macros.metal b/src/backend/metal/shaders/macros.h similarity index 100% rename from src/backend/metal/shaders/macros.metal rename to src/backend/metal/shaders/macros.h