Don't build the runtime library if LLVMGCC is not configured.
[oota-llvm.git] / projects / Makefile
index 1e89f6d91bdd3bd9e64bc86aca510c5f3a057e84..0997a2a3817ec02cb00271b51eea52c9349482c7 100644 (file)
@@ -10,7 +10,7 @@ LEVEL=..
 
 include $(LEVEL)/Makefile.config
 
-DIRS:= $(filter-out llvm-test,$(patsubst $(SourceDir)/%/Makefile,%,$(wildcard $(SourceDir)/*/Makefile)))
+DIRS:= $(filter-out llvm-test,$(patsubst $(PROJ_SRC_DIR)/%/Makefile,%,$(wildcard $(PROJ_SRC_DIR)/*/Makefile)))
 
 # Sparc cannot link shared libraries (libtool problem?) which Stacker uses
 ifeq ($(ARCH), Sparc)
@@ -18,4 +18,10 @@ DIRS := $(filter-out Stacker, $(DIRS))
 DIRS := $(filter-out sample, $(DIRS))
 endif
 
-include $(BUILD_SRC_ROOT)/Makefile.rules
+
+# Universal builds can't build stacker, which uses llvm-gcc -S.
+ifdef UNIVERSAL
+DIRS := $(filter-out Stacker, $(DIRS))
+endif
+
+include $(PROJ_SRC_ROOT)/Makefile.rules