From 63fc9a86f4e72c2be1215c0499a0d9cae4e13ddd Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Tue, 4 Sep 2018 18:29:59 -0700 Subject: [PATCH] fix metal build --- src/backend/metal/build.rs | 2 +- src/backend/metal/shaders/blit.metal | 2 +- src/backend/metal/shaders/clear.metal | 2 +- src/backend/metal/shaders/{macros.metal => macros.h} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/backend/metal/shaders/{macros.metal => macros.h} (100%) 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