File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ readme = "README.md"
1111documentation = " https://docs.rs/gfx-backend-metal"
1212workspace = " ../../.."
1313edition = " 2018"
14+ build = " build/build.rs"
1415
1516[features ]
1617# TODO: add a feature to enable `profiling`, so that we can CI test it
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ println ! (
3+ "cargo:rustc-env=TARGET={}" ,
4+ std:: env:: var( "TARGET" ) . unwrap( )
5+ ) ;
6+ }
Original file line number Diff line number Diff line change @@ -456,7 +456,11 @@ impl ServicePipes {
456456 let data = if cfg ! ( target_os = "macos" ) {
457457 & include_bytes ! ( "./../shaders/gfx-shaders-macos.metallib" ) [ ..]
458458 } else if cfg ! ( target_arch = "aarch64" ) {
459- & include_bytes ! ( "./../shaders/gfx-shaders-ios.metallib" ) [ ..]
459+ if env ! ( "TARGET" ) == "aarch64-apple-ios-sim" {
460+ & include_bytes ! ( "./../shaders/gfx-shaders-ios-simulator.metallib" ) [ ..]
461+ } else {
462+ & include_bytes ! ( "./../shaders/gfx-shaders-ios.metallib" ) [ ..]
463+ }
460464 } else {
461465 & include_bytes ! ( "./../shaders/gfx-shaders-ios-simulator.metallib" ) [ ..]
462466 } ;
You can’t perform that action at this time.
0 commit comments