summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-02-20 23:34:26 +0000
committerAdrian Prantl <aprantl@apple.com>2015-02-20 23:34:26 +0000
commitf2b0cd91ebe6a99437e22d99f78c1bfaf756f4c8 (patch)
treebaca05d6b36b1c94325edb8cd6841013ccb3a7ca /clang/tools/libclang
parent1f3e5c195c9bbb1cda5d6b1f4a417513b55e1fa0 (diff)
downloadbcm5719-llvm-f2b0cd91ebe6a99437e22d99f78c1bfaf756f4c8.tar.gz
bcm5719-llvm-f2b0cd91ebe6a99437e22d99f78c1bfaf756f4c8.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. rdar://problem/19104245 This reapplies r230044 with a fixed configure+make build and updated dependencies. Take 2. llvm-svn: 230089
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CMakeLists.txt1
-rw-r--r--clang/tools/libclang/Makefile4
2 files changed, 4 insertions, 1 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..141a347e9c6 100644
--- a/clang/tools/libclang/Makefile
+++ b/clang/tools/libclang/Makefile
@@ -16,11 +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 mc mcparser objcarcopts option support
USEDLIBS = clangIndex.a clangARCMigrate.a \
clangRewriteFrontend.a \
clangFormat.a \
clangTooling.a clangToolingCore.a \
+ clangCodeGen.a \
clangFrontend.a clangDriver.a \
clangSerialization.a \
clangParse.a clangSema.a \
OpenPOWER on IntegriCloud