forked from OSchip/llvm-project
Make the shlibext and llvmlibsdir variables accessible.
llvm-svn: 35939
This commit is contained in:
parent
c6251a7dfd
commit
09f5000873
|
@ -67,6 +67,7 @@ site.exp: Makefile $(LLVM_OBJ_ROOT)/Makefile.config
|
|||
@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 shlibext "$(SHLIBEXT)"' >> 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
proc llvm-runtest { programs } {
|
||||
global srcroot objroot srcdir objdir subdir target_triplet prcontext
|
||||
global llvmgcc llvmgxx global llvmgcc_version llvmgccmajvers
|
||||
global gccpath gxxpath compile_c compile_cxx link
|
||||
global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
|
||||
|
||||
set timeout 60
|
||||
|
||||
|
@ -60,6 +60,10 @@ proc llvm-runtest { programs } {
|
|||
regsub -all {%compile_cxx} $new_runline "$compile_cxx" new_runline
|
||||
#replace %link with C++ link command
|
||||
regsub -all {%link} $new_runline "$link" new_runline
|
||||
#replace %shlibext with shared library extension
|
||||
regsub -all {%shlibext} $new_runline "$shlibext" new_runline
|
||||
#replace %llvmlibsdir with configure library directory
|
||||
regsub -all {%llvmlibsdir} $new_runline "$llvmlibsdir" new_runline
|
||||
#replace %p with path to source,
|
||||
regsub -all {%p} $new_runline [file join $srcdir $subdir] new_runline
|
||||
#replace %s with filename
|
||||
|
|
Loading…
Reference in New Issue