Merge pull request #125 from karl-lunarg/fetch-copy

fetchDeps: Copy glslang instead of symlink
This commit is contained in:
Bill Hollings 2018-04-09 12:14:33 -04:00 committed by GitHub
commit 586186e8f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,12 +137,14 @@ fi
# ----------------- glslang, SPIRV-Tools & SPIRV-Headers -------------------
# When MoltenVK is built by something that already has a copy of the
# glslang repo, use it by creating a symlink.
# glslang repo, copy it here.
# Note that a symlink doesn't work because the name of the containing
# directory (e.g., External) may not be the same.
if [ ! "$GLSLANG_ROOT" = "" ]; then
REPO_NAME=${GLSLANG_NAME}
rm -rf ${REPO_NAME}
ln -sfn ${GLSLANG_ROOT} ${REPO_NAME}
cp -a ${GLSLANG_ROOT} ${REPO_NAME}
else