fail cmake build on shader compilation failure
This commit is contained in:
@@ -7,12 +7,11 @@ check_return_code() {
|
||||
# return code of last executed command
|
||||
retVal=$?
|
||||
if [ $retVal -ne 0 ]; then
|
||||
read -p "Press enter to continue"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
rm *.spv
|
||||
rm -f *.spv
|
||||
|
||||
for f in $SHADER_PATH/*.vert ; do
|
||||
filename=$(basename -- "$f")
|
||||
@@ -34,6 +33,3 @@ for f in $SHADER_PATH/*.vert ; do
|
||||
sed -i "s/} TFileTableEntry;/} TFileTableEntry;\n#endif \/*TFileTableEntry_H_INCLUDED*\//" $GENERATED_DATA_PATH/$filename_no_ext.h
|
||||
rm *.spv
|
||||
done
|
||||
|
||||
read -p "Press enter to continue"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user