Skip to content

Commit

Permalink
Merge #2379
Browse files Browse the repository at this point in the history
2379: fix metal build r=grovesNL a=stuartcarnie

Fixes metal compilation issue:

    metallib: Invalid bitcode file!


PR checklist:
- [ ] `make` succeeds (on *nix)
    - a few failures due to rust-lang/rust#52801
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: **metal**
- [x] `rustfmt` run on changed code

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
  • Loading branch information
bors[bot] and stuartcarnie committed Sep 5, 2018
2 parents 243939a + 63fc9a8 commit 3a4cdb5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/metal/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion src/backend/metal/shaders/blit.metal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "macros.metal"
#include "macros.h"
#include <metal_stdlib>
using namespace metal;

Expand Down
2 changes: 1 addition & 1 deletion src/backend/metal/shaders/clear.metal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "macros.metal"
#include "macros.h"
#include <metal_stdlib>
using namespace metal;

Expand Down
File renamed without changes.

0 comments on commit 3a4cdb5

Please sign in to comment.