forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[msbuild] Fix metal targets for Xcode8 (xamarin#1838)
Fixes bug #52982: [iOS]Metal samples fail to build with Xcode8.3 (https://bugzilla.xamarin.com/show_bug.cgi?id=52982) Basically with Xcode8 Apple stopped using an intermediary step to generate the default.metallib. This was what our `_ForgeMetal` target was doing, generate a `default.metal-ar` file which was used as input for `_TemperMetal` and then generate the default.metallib. Instead with Xcode8 you can just give Shaders.air directly to the metallib tool. The fix in this commit is made in such a way that it still supports Xcode7. if !Xcode8 then don't change anything. if Xcode8+ then have `_ForgedMetal` output equal `@(_SmeltedMetal)` (basically skip the _ForgeMetal target).
- Loading branch information
1 parent
78e3ae2
commit 2ffe5fd
Showing
4 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters