llvm.org GIT mirror llvm / 93bc3cd
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 Reid Spencer 13 years ago
2 changed file(s) with 19 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
88 LEVEL = .
99 DIRS = lib/System lib/Support utils lib
1010
11 include $(LEVEL)/Makefile.common
12
1113 ifeq ($(MAKECMDGOALS),tools-only)
12 DIRS += tools
14 DIRS += tools
1315 else
1416 ifneq ($(MAKECMDGOALS),libs-only)
15 DIRS += tools runtime docs
16 OPTIONAL_DIRS = examples projects
17 DIRS += tools
18 ifeq ($(LLVMGCC_MAJVERS),3)
19 DIRS += runtime
20 else
21 $(warning Skipping runtime libraries, llvm-gcc 4 detected.)
22 endif
23 DIRS += docs
1724 endif
25 OPTIONAL_DIRS = examples projects
1826 endif
19
2027 EXTRA_DIST := test llvm.spec include
21
22 include $(LEVEL)/Makefile.common
2328
2429 # Specify options to pass to configure script when we're
2530 # running the dist-check target
99 LEVEL = ..
1010 include $(LEVEL)/Makefile.config
1111
12 ifneq ($(LLVMGCC_MAJVERS),3)
13 PARALLEL_DIRS :=
14 install all::
15 $(Echo) "Warning: The runtime libraries only need to be built with"
16 $(Echo) "Warning: llvm-gcc version 3. They are automatically included"
17 $(Echo) "Warning: with llvm-gcc version 4 and beyond"
18 else
1219 ifneq ($(wildcard $(LLVMGCC)),)
1320 PARALLEL_DIRS := GCCLibraries libdummy libprofile libtrace GC
1421 else
2532 ifeq ($(ARCH), Sparc)
2633 PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
2734 endif
35 endif
2836
2937 include $(LEVEL)/Makefile.common
3038