[llvm-commits] CVS: llvm/test/Makefile

Reid Spencer reid at x10sys.com
Wed Apr 11 13:58:01 PDT 2007



Changes in directory llvm/test:

Makefile updated: 1.94 -> 1.95
---
Log message:

Make new variables available: compile_c, compile_cxx, link to handle tests
that want to use LLVM's notion of compiling and linking programs. This 
includes all the -I -L and optimization switches that LLVM would using to
compile or link any of this files. 


---
Diffs of the changes:  (+5 -1)

 Makefile |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/test/Makefile
diff -u llvm/test/Makefile:1.94 llvm/test/Makefile:1.95
--- llvm/test/Makefile:1.94	Sun Feb 11 14:18:32 2007
+++ llvm/test/Makefile	Wed Apr 11 15:57:39 2007
@@ -59,10 +59,14 @@
 	@echo 'set objroot "$(LLVM_OBJ_ROOT)"' >>site.tmp
 	@echo 'set srcdir "$(LLVM_SRC_ROOT)/test"' >>site.tmp
 	@echo 'set objdir "$(LLVM_OBJ_ROOT)/test"' >>site.tmp
+	@echo 'set gccpath "$(CC)"' >>site.tmp
+	@echo 'set gxxpath "$(CXX)"' >>site.tmp
+	@echo 'set compile_c {$(CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -c } ' >>site.tmp
+	@echo 'set compile_cxx {$(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) - c}' >> site.tmp
+	@echo 'set link {$(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts) $(LD.Flags)}' >>site.tmp
 	@echo 'set llvmgcc "PATH=\"$(LLVMToolDir):$(PATH)\" \"$(LLVMGCC)\""' >> site.tmp
 	@echo 'set llvmgxx "PATH=\"$(LLVMToolDir):$(PATH)\" \"$(LLVMGCC)\""' >> site.tmp
 	@echo 'set llvmgccmajvers "$(LLVMGCC_MAJVERS)"' >> site.tmp
-	@echo 'set gxxcmd "$(CXX) $(CPP.Flags) $(CXX.Flags) $(CompileCommonOpts)"' >> site.tmp
 	@echo '## All variables above are generated by configure. Do Not Edit ## ' >>site.tmp
 	@test ! -f site.exp || \
 	sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp






More information about the llvm-commits mailing list