diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-11 22:20:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-11 22:20:12 +0000 |
commit | 2108577809989bd5c591128b48aac6715b3f61b6 (patch) | |
tree | 58e8871577add29f785deb2b5907c2e04f5e57c9 /tools/driver/Makefile | |
parent | 9d5f35e1124bbaa4a8944f7409478d45cb839de5 (diff) | |
download | clang-2108577809989bd5c591128b48aac6715b3f61b6.tar.gz clang-2108577809989bd5c591128b48aac6715b3f61b6.tar.bz2 clang-2108577809989bd5c591128b48aac6715b3f61b6.tar.xz |
Implement clang -cc1.
- I apologize for the link time horrors, my goal is to kill off clang-cc in fairly short order.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/Makefile')
-rw-r--r-- | tools/driver/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tools/driver/Makefile b/tools/driver/Makefile index f250651ed7..7dab2ac923 100644 --- a/tools/driver/Makefile +++ b/tools/driver/Makefile @@ -1,10 +1,10 @@ ##===- tools/driver/Makefile -------------------------------*- Makefile -*-===## -# +# # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. -# +# ##===----------------------------------------------------------------------===## LEVEL = ../../../.. @@ -13,15 +13,20 @@ TOOLALIAS = clang++ CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include CXXFLAGS = -fno-rtti -# This tool has no plugins, optimize startup time. +# Clang tool has no plugins, optimize startup time. TOOL_NO_EXPORTS = 1 -# FIXME: It is unfortunate we need to pull in the bitcode reader and -# writer just to get the serializer stuff used by clangBasic. -LINK_COMPONENTS := system support bitreader bitwriter -USEDLIBS = clangDriver.a clangBasic.a +# Include this here so we can get the configuration of the targets that have +# been configured for construction. We have to do this early so we can set up +# LINK_COMPONENTS before including Makefile.rules +include $(LEVEL)/Makefile.config + +LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag +USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangAnalysis.a \ + clangRewrite.a clangSema.a clangAST.a clangParse.a \ + clangLex.a clangBasic.a -include $(LEVEL)/Makefile.common +include $(LLVM_SRC_ROOT)/Makefile.rules # Translate make variable to define when building a "production" clang. ifdef CLANG_IS_PRODUCTION |