File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,22 +24,17 @@ if(NOT EXECUTORCH_ROOT)
2424 message ("WARNING: EXECUTORCH_ROOT is not set! A failure is likely imminent." )
2525endif ()
2626
27- if (ANDROID )
28- if (NOT ANDROID_NDK)
29- message (FATAL_ERROR "ANDROID_NDK not set" )
30- endif ()
31-
32- if (NOT GLSLC_PATH)
33- set (GLSLC_PATH
34- "${ANDROID_NDK} /shader-tools/${ANDROID_NDK_HOST_SYSTEM_NAME} /glslc"
35- )
36- endif ()
37- else ()
38- find_program (GLSLC_PATH glslc PATHS $ENV{PATH} )
27+ find_program (GLSLC_PATH glslc PATHS $ENV{PATH} )
3928
40- if (NOT GLSLC_PATH)
41- message (FATAL_ERROR "USE_VULKAN glslc not found" )
42- endif ()
29+ if (NOT GLSLC_PATH)
30+ message (
31+ FATAL_ERROR
32+ "glslc from the Vulkan SDK must be installed to build the Vulkan backend. "
33+ "Please install the Vulkan SDK 1.4.321.0 or newer from "
34+ "https://vulkan.lunarg.com/sdk/home and ensure that the glslc binary is in your PATH. "
35+ "Note that the glslc distributed with the Android NDK is not compatible since it "
36+ "does not support the GL_EXT_integer_dot_product extension. "
37+ )
4338endif ()
4439
4540# Required to enable linking with --whole-archive
You can’t perform that action at this time.
0 commit comments