From d7e6c048551fea3fe4440fece9b10e8a7d7f8ad4 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 8 Jul 2016 08:22:28 +0100 Subject: [PATCH] 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 --- wmake/wmakeLnIncludeAll | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wmake/wmakeLnIncludeAll b/wmake/wmakeLnIncludeAll index 626f4175d0..023c1dcc7f 100755 --- a/wmake/wmakeLnIncludeAll +++ b/wmake/wmakeLnIncludeAll @@ -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