add conda build script
This commit is contained in:
parent
1ed3c77310
commit
d060c10096
4 changed files with 65 additions and 0 deletions
19
buildscripts/condarecipe/run_test.py
Normal file
19
buildscripts/condarecipe/run_test.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import sys
|
||||
import platform
|
||||
import llvm
|
||||
|
||||
from llvm.core import Module
|
||||
from llvm.ee import EngineBuilder
|
||||
m = Module.new('fjoidajfa')
|
||||
eb = EngineBuilder.new(m)
|
||||
target = eb.select_target()
|
||||
|
||||
print('target.triple=%r' % target.triple)
|
||||
if sys.platform == 'darwin':
|
||||
s = {'64bit': 'x86_64', '32bit': 'x86'}[platform.architecture()[0]]
|
||||
assert target.triple.startswith(s + '-apple-darwin')
|
||||
|
||||
assert llvm.test(verbosity=2) == 0
|
||||
|
||||
print('llvm.__version__: %s' % llvm.__version__)
|
||||
#assert llvm.__version__ == '0.12.0'
|
||||
Loading…
Add table
Add a link
Reference in a new issue