Hi Eric,
currently, when using configure & make, clang examples don't build and two of
the tests fail with missing definitions (plugins dir and plugins extension).
small to patch to fix these,
(assumes that plugins reside in the shlib dir and have the same suffix, which
is true for the cases I've tested).
this allows build and test to work with
make .... BUILD_EXAMPLES=1 ...
OK?
Iain
P.S. it appears that there is also a parallel build issue [at least on OSX 10.8]
- but right now I'm treating that as a separate problem.
(the latter is solvable by adding "examples" to DIRS instead of PARALLEL_DIRS
in clang/Makefile .. but I haven't got to the bottom of what's actually going
wrong).
diff --git a/clang/examples/clang-interpreter/Makefile
b/clang/examples/clang-interpreter/Makefile
index 6494e9a..0554c99 100644
--- a/clang/examples/clang-interpreter/Makefile
+++ b/clang/examples/clang-interpreter/Makefile
@@ -21,6 +21,6 @@ USEDLIBS = clangFrontend.a clangSerialization.a clangDriver.a
clangCodeGen.a \
clangParse.a clangSema.a clangStaticAnalyzerFrontend.a \
clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \
clangAnalysis.a clangRewriteCore.a clangRewriteFrontend.a \
- clangEdit.a clangAST.a clangLex.a clangBasic.a
+ clangEdit.a clangAST.a clangLex.a clangBasic.a LLVMProfileData.a
include $(CLANG_LEVEL)/Makefile
diff --git a/clang/test/Makefile b/clang/test/Makefile
index da7b965..93a07e6 100644
--- a/clang/test/Makefile
+++ b/clang/test/Makefile
@@ -51,6 +51,8 @@ lit.site.cfg: FORCE
@$(ECHOPATH)
s=@ENABLE_CLANG_STATIC_ANALYZER@=$(ENABLE_CLANG_STATIC_ANALYZER)=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_CLANG_EXAMPLES@=$(ENABLE_CLANG_EXAMPLES)=g >>
lit.tmp
@$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> lit.tmp
+ @$(ECHOPATH) s=@SHLIBDIR@=$(SharedLibDir)=g >> lit.tmp
+ @$(ECHOPATH) s=@LLVM_PLUGIN_EXT@=$(SHLIBEXT)=g >> lit.tmp
@sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
@-rm -f lit.tmp
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits