summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-02-25 01:31:45 +0000
committerAdrian Prantl <aprantl@apple.com>2015-02-25 01:31:45 +0000
commit8bf7af3de80fe746cb39fe03b19e6e736183c1d8 (patch)
tree3631796942b357f01d486a34631e918d05db7b86 /clang/tools/libclang
parentb6396eaef90c9f3dee42d8af918b93b6628b9f4a (diff)
downloadbcm5719-llvm-8bf7af3de80fe746cb39fe03b19e6e736183c1d8.tar.gz
bcm5719-llvm-8bf7af3de80fe746cb39fe03b19e6e736183c1d8.zip
Wrap clang module files in a Mach-O, ELF, or COFF container.
This is a necessary prerequisite for debugging with modules. The .pcm files become containers that hold the serialized AST which allows us to store debug information in the module file that can be shared by all object files that were built importing the module. This reapplies r230044 with a fixed configure+make build and updated dependencies and testcase requirements. Over the last iteration this version adds - missing target requirements for testcases that specify an x86 triple, - a missing clangCodeGen.a dependency to libClang.a in the make build. rdar://problem/19104245 llvm-svn: 230423
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CMakeLists.txt1
-rw-r--r--clang/tools/libclang/Makefile5
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
index 26f88a97c57..1cc4cb748d3 100644
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -40,6 +40,7 @@ set(SOURCES
set(LIBS
clangAST
clangBasic
+ clangCodeGen
clangFrontend
clangIndex
clangLex
diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile
index 97f663cde47..66b67a369a9 100644
--- a/clang/tools/libclang/Makefile
+++ b/clang/tools/libclang/Makefile
@@ -16,12 +16,13 @@ LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
include $(CLANG_LEVEL)/../../Makefile.config
-LINK_COMPONENTS := AsmParser BitReader Core MC MCParser Option Support
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter core \
+ instrumentation ipo mc mcparser objcarcopts option support
USEDLIBS = clangIndex.a clangARCMigrate.a \
clangRewriteFrontend.a \
clangFormat.a \
clangTooling.a clangToolingCore.a \
- clangFrontend.a clangDriver.a \
+ clangFrontend.a clangCodeGen.a clangDriver.a \
clangSerialization.a \
clangParse.a clangSema.a \
clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \
OpenPOWER on IntegriCloud