From 93bc3cdd43a7f4e764049d12bd6aad019b834432 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 6 Apr 2006 22:15:51 +0000 Subject: Avoid building the runtime libraries if llvm-gcc version 4 is detected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27464 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b474a3a067..a56fca48b1 100644 --- a/Makefile +++ b/Makefile @@ -9,19 +9,24 @@ LEVEL = . DIRS = lib/System lib/Support utils lib +include $(LEVEL)/Makefile.common + ifeq ($(MAKECMDGOALS),tools-only) -DIRS += tools + DIRS += tools else ifneq ($(MAKECMDGOALS),libs-only) - DIRS += tools runtime docs - OPTIONAL_DIRS = examples projects + DIRS += tools + ifeq ($(LLVMGCC_MAJVERS),3) + DIRS += runtime + else + $(warning Skipping runtime libraries, llvm-gcc 4 detected.) + endif + DIRS += docs endif + OPTIONAL_DIRS = examples projects endif - EXTRA_DIST := test llvm.spec include -include $(LEVEL)/Makefile.common - # Specify options to pass to configure script when we're # running the dist-check target DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR) -- cgit v1.2.3