wmakeLnIncludeAll: When running parallel wait for the wmakeLnInclude jobs to complete

then synchronize the file system to ensure all links are flushed before
compilation starts
This commit is contained in:
Henry Weller 2016-07-08 08:22:28 +01:00
parent a7fa5699df
commit d7e6c04855

View File

@ -139,6 +139,16 @@ do
done
done
if [ "$nCores" -gt 0 ]
then
# Wait for all of the wmakeLnInclude jobs to finish
wait
# Synchronize the file system to ensure that all of the links exist
# before compilation
sync
fi
#------------------------------------------------------------------------------
# Cleanup local variables and functions