[llvm-commits] CVS: llvm/tools/llc/Makefile

Reid Spencer reid at x10sys.com
Sat Apr 23 10:24:44 PDT 2005



Changes in directory llvm/tools/llc:

Makefile updated: 1.71 -> 1.72
---
Log message:

Make the CBackend actually get included in llc by using USEDLIBS instead of
USEDLIB as the variable to which "CBackend" is appended. The surrounding
if clause is safe because currently the configure script ensures that the
CBackend target is always added to TARGETS_TO_BUILD. By using a non-hard
coded construct in the makefile, we gain uniformity and the ability to 
change the default set of targets by only changing the configure script.


---
Diffs of the changes:  (+4 -2)

 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.71 llvm/tools/llc/Makefile:1.72
--- llvm/tools/llc/Makefile:1.71	Sat Apr 23 09:36:22 2005
+++ llvm/tools/llc/Makefile	Sat Apr 23 12:24:33 2005
@@ -18,8 +18,10 @@
 # Initialize the USEDLIBS so we can add to it
 USEDLIBS :=
 
-# Always add the C Backend
-USEDLIB += LLVMCBackend
+# Check for LLVMCBackend  target
+ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
+USEDLIBS += LLVMCBackend
+endif
 
 # Check for Skeleton target
 ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)






More information about the llvm-commits mailing list