mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-24 20:30:06 +00:00
tests: Add llvm_supports_binding predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbc18f839c
commit
840a718105
@ -135,6 +135,7 @@ site.exp: FORCE
|
||||
@echo 'set llvmgcc_version "$(LLVMGCC_VERSION)"' >> site.tmp
|
||||
@echo 'set llvmtoolsdir "$(ToolDir)"' >>site.tmp
|
||||
@echo 'set llvmlibsdir "$(LibDir)"' >>site.tmp
|
||||
@echo 'set llvm_bindings "$(BINDINGS_TO_BUILD)"' >> site.tmp
|
||||
@echo 'set srcroot "$(LLVM_SRC_ROOT)"' >>site.tmp
|
||||
@echo 'set objroot "$(LLVM_OBJ_ROOT)"' >>site.tmp
|
||||
@echo 'set srcdir "$(LLVM_SRC_ROOT)/test"' >>site.tmp
|
||||
|
@ -300,3 +300,15 @@ proc llvm_supports_target { tgtName } {
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
# This procedure provides an interface to check the BINDINGS_TO_BUILD makefile
|
||||
# variable to see if a particular binding has been configured to build.
|
||||
proc llvm_supports_binding { name } {
|
||||
global llvm_bindings
|
||||
foreach item [split $llvm_bindings] {
|
||||
if { [regexp $name $item match] } {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
@ -99,6 +99,10 @@ langs = set(site_exp['llvmgcc_langs'].split(','))
|
||||
def llvm_gcc_supports(name):
|
||||
return name in langs
|
||||
|
||||
bindings = set(site_exp['llvm_bindings'].split(','))
|
||||
def llvm_supports_binding(name):
|
||||
return name in langs
|
||||
|
||||
# Provide on_clone hook for reading 'dg.exp'.
|
||||
import os
|
||||
simpleLibData = re.compile(r"""load_lib llvm.exp
|
||||
|
Loading…
Reference in New Issue
Block a user