Dear Clangers,

I am submitting this small Makefile patch for review. It changes the TableGen Makefile to specify its libraries using LINK_COMPONENTS instead of USEDLIBS.

The reason for the patch is that it allows Clang's TableGen utility to be compiled within an LLVM sub-project without modification. Projects such as SAFECode duplicate Clang's source inside an LLVM sub-project and specialize it. This patch reduces the changes that such sub-projects need to make to Clang to get it to compile within an LLVM sub-project.

If approved, I can commit the change myself as I have commit access to the LLVM SVN repository.

-- John T.

Index: utils/TableGen/Makefile
===================================================================
--- utils/TableGen/Makefile     (revision 141295)
+++ utils/TableGen/Makefile     (working copy)
@@ -9,7 +9,7 @@
 
 CLANG_LEVEL = ../..
 TOOLNAME = clang-tblgen
-USEDLIBS = LLVMTableGen.a LLVMSupport.a
+LINK_COMPONENTS = TableGen support
 REQUIRES_EH := 1
 REQUIRES_RTTI := 1
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to