Browse Source

configure: On Apple platforms, only exclude Vulkan on x86.

This catches both x86-64 and ARM devices.
Ryan C. Gordon 5 years ago
parent
commit
45f5eb0615
2 changed files with 2 additions and 2 deletions
  1. 1 1
      configure
  2. 1 1
      configure.ac

+ 1 - 1
configure

@@ -22674,7 +22674,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   #include <Metal/Metal.h>
                   #include <Metal/Metal.h>
                   #include <QuartzCore/CAMetalLayer.h>
                   #include <QuartzCore/CAMetalLayer.h>
 
 
-                  #if !TARGET_CPU_X86_64
+                  #if TARGET_CPU_X86
                   #error Vulkan doesn't work on this configuration
                   #error Vulkan doesn't work on this configuration
                   #endif
                   #endif
 
 

+ 1 - 1
configure.ac

@@ -2568,7 +2568,7 @@ CheckVulkan()
                   #include <Metal/Metal.h>
                   #include <Metal/Metal.h>
                   #include <QuartzCore/CAMetalLayer.h>
                   #include <QuartzCore/CAMetalLayer.h>
 
 
-                  #if !TARGET_CPU_X86_64
+                  #if TARGET_CPU_X86
                   #error Vulkan doesn't work on this configuration
                   #error Vulkan doesn't work on this configuration
                   #endif
                   #endif
                 ],[
                 ],[