From eeccb63c4e483bd7b391af32a06a662bdbbc63c5 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Tue, 23 Feb 2016 16:26:36 +0100 Subject: [PATCH] Avoid build fails due to missing submodule. --- qb/config.libs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index beae5299bc..f6cba4352f 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -392,6 +392,12 @@ check_lib STRCASESTR "$CLIB" strcasestr check_lib MMAP "$CLIB" mmap check_lib VULKAN -lvulkan vkCreateInstance +if [ "$HAVE_VULKAN" != 'no' ] && [ ! -e deps/glslang/glslang/README.md ]; then + echo "Warning: glslang submodule not loaded, can't use Vulkan." + echo "To fix, use: git submodule init && git submodule update" + HAVE_VULKAN=no +fi + check_pkgconf PYTHON python3 if [ "$HAVE_MATERIALUI" != 'no' ] || [ "$HAVE_XMB" != 'no' ] || [ "$HAVE_ZARCH" != 'no' ]; then