mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
tests: Ignore whitespace in llvm_supports_binding() and llvm_gcc_supports().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
979e0a1414
commit
62b4d71d7f
@ -148,13 +148,13 @@ def llvm_supports_target(name):
|
||||
def llvm_supports_darwin_and_target(name):
|
||||
return 'darwin' in config.target_triple and llvm_supports_target(name)
|
||||
|
||||
langs = set(site_exp['llvmgcc_langs'].split(','))
|
||||
langs = set([s.strip for s in site_exp['llvmgcc_langs'].split(',')])
|
||||
def llvm_gcc_supports(name):
|
||||
return name in langs
|
||||
return name.strip() in langs
|
||||
|
||||
bindings = set(site_exp['llvm_bindings'].split(','))
|
||||
bindings = set([s.strip for s in site_exp['llvm_bindings'].split(',')])
|
||||
def llvm_supports_binding(name):
|
||||
return name in bindings
|
||||
return name.strip() in bindings
|
||||
|
||||
# Provide on_clone hook for reading 'dg.exp'.
|
||||
import os
|
||||
|
Loading…
Reference in New Issue
Block a user