+ # gold only builds if binutils is around. It requires "lto" to build before
+ # it so it is added to DIRS. llvm-lto also requires lto
+ DIRS += lto llvm-lto
+ ifdef BINUTILS_INCDIR
+ DIRS += gold
+ endif
+
+ PARALLEL_DIRS += bugpoint-passes
+endif
+
+ifdef LLVM_HAS_POLLY
+ PARALLEL_DIRS += polly
+endif
+endif
+
+# On Win32, loadable modules can be built with ENABLE_SHARED.
+ifneq ($(ENABLE_SHARED),1)
+ ifneq (,$(filter $(HOST_OS), Cygwin MingW))
+ PARALLEL_DIRS := $(filter-out bugpoint-passes, \
+ $(PARALLEL_DIRS))
+ endif