Fix rdar://7694996 a miscompile of 183.equake from my patch yesterday,
[oota-llvm.git] / runtime / Makefile
index 9937c11e3bc3b0905c948c8efb329009822f3fe7..1e1045142583f74d3596d18bd531e2edb6e5ec1b 100644 (file)
 LEVEL = ..
 include $(LEVEL)/Makefile.config
 
-ifneq ($(wildcard $(LLVMGCC)),)
+ifndef NO_RUNTIME_LIBS
+
 PARALLEL_DIRS  := libprofile
-else
-PARALLEL_DIRS  := 
-install all ::
-       @echo '********' Warning: Your LLVMGCCDIR is set incorrectly.  Check 
-       @echo '********' Warning: llvm/Makefile.config to make sure it matches
-       @echo '********' Warning: the directory where the C front-end is
-       @echo '********' Warning: installed,and re-run configure if it does not.
-endif
 
 # Disable libprofile: a faulty libtool is generated by autoconf which breaks the
 # build on Sparc
@@ -27,9 +20,8 @@ ifeq ($(ARCH), Sparc)
 PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
 endif
 
+endif
+
 include $(LEVEL)/Makefile.common
 
-# Install target for libraries: Copy into $LLVMGCCDIR/bytecode-libs
-#
 install::
-