Skip to content

Commit 92390cf

Browse files
committedAug 26, 2015
py2llvm: allow the unit test to run on Windows
1 parent d5f2f5c commit 92390cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
 

Diff for: ‎artiq/test/py2llvm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from fractions import Fraction
55
from ctypes import CFUNCTYPE, c_int, c_int32, c_int64, c_double
66
import struct
7+
import os
78

89
import llvmlite_artiq.binding as llvm
910

@@ -16,7 +17,7 @@
1617
llvm.initialize()
1718
llvm.initialize_native_target()
1819
llvm.initialize_native_asmprinter()
19-
if struct.calcsize("P") < 8:
20+
if struct.calcsize("P") < 8 and os.name != "nt":
2021
from ctypes import _dlopen, RTLD_GLOBAL
2122
_dlopen("libgcc_s.so", RTLD_GLOBAL)
2223

Diff for: ‎conda/llvmdev-or1k/bld.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set CMAKE_GENERATOR=Visual Studio 12 2013 Win64
99
)
1010
set CMAKE_GENERATOR_TOOLSET=v120_xp
1111
@rem Reduce build times and package size by removing unused stuff
12-
set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD=OR1K -DLLVM_INCLUDE_TESTS=OFF ^
12+
set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD="OR1K;X86" -DLLVM_INCLUDE_TESTS=OFF ^
1313
-DLLVM_INCLUDE_TOOLS=OFF -DLLVM_INCLUDE_UTILS=OFF ^
1414
-DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF ^
1515
-DLLVM_ENABLE_ASSERTIONS=ON

Diff for: ‎conda/llvmlite-artiq/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requirements:
1515
- python
1616

1717
build:
18-
number: 2
18+
number: 3
1919

2020
test:
2121
imports:

0 commit comments

Comments
 (0)
Please sign in to comment.