Skip to content

Commit

Permalink
Re-add check for Metal on x86, where it's not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 18, 2020
1 parent b7a4fdd commit b0ca8ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure
Expand Up @@ -21775,6 +21775,10 @@ $as_echo_n "checking for Metal framework... " >&6; }
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalLayer.h>

#if TARGET_CPU_X86
#error Metal doesn't work on this configuration
#endif

int
main ()
{
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -2156,6 +2156,10 @@ AS_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[defaul
#import <Cocoa/Cocoa.h>
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalLayer.h>
#if TARGET_CPU_X86
#error Metal doesn't work on this configuration
#endif
],[
],[
have_metal=yes
Expand Down

0 comments on commit b0ca8ef

Please sign in to comment.