Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2014-05-09 06:26:33 +0400
committerMiguel de Icaza <miguel@gnome.org>2014-05-09 19:27:53 +0400
commit9adb22769b890d9dec0647eb098ff40a810a4aa6 (patch)
tree488d72084e9cf976e0750bb4033dd75a6317b662 /mcs/class/System.Security
parent366c13fc51f70e2348888d9f35f77a3a01c559b8 (diff)
[build] Prevent cyclic targets from being built in parallel
Since we are invoking make recursively to satisfy the dependencies for any of the cyclic components, we need to inform make to not try to parallelize any work on any of the cyclic dependencies, otherwise multiple builds will execute building the same binary, and the result will be truncated outputs. For example, System's Makefile would launch all the parallel builds for the dependencies: $(secxml_libdir)/System.dll \ $(the_libdir_base)System.Xml.dll \ $(the_libdir_base)Mono.Security.dll \ $(bare_libdir)/System.dll They could be launched in parallel, and in turn the makefiles on those directories might try simultaneously to invoke recursively a component that has not been built yet. So we use .NOTPARALLEL to flag all the cyclic dependencies on a given directory to instruct make to not run those in parallel.
Diffstat (limited to 'mcs/class/System.Security')
-rw-r--r--mcs/class/System.Security/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/System.Security/Makefile b/mcs/class/System.Security/Makefile
index 1101a28c0dd..fb1c23c92b0 100644
--- a/mcs/class/System.Security/Makefile
+++ b/mcs/class/System.Security/Makefile
@@ -32,6 +32,8 @@ $(secxml_libdir)/System.dll:
$(bare_libdir)/Mono.Security.dll:
(cd ../Mono.Security; $(MAKE))
+.NOTPARALLEL: $(secxml_libdir)/System.dll $(bare_libdir)/Mono.Security.dll
+
# run the PKITS tests only if the data was installed/activated, otherwise ignore them
ifeq (net_2_0, $(PROFILE))
pkits_files := $(wildcard ../System/Test/System.Security.Cryptography.X509Certificates/pkits/hint)