-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on Windows #8
Comments
And a workaround for #include <intrin.h>
#pragma intrinsic(_BitScanForward)
static __forceinline int
ffs (int x)
{
unsigned long i;
if (_BitScanForward(&i, x) != 0)
return i + 1;
return 0;
} With that sprinkled in a few places, the project builds, fwiw. |
Awesome. I'd also like to update https://github.com/conda-forge/islpy-feedstock to include Win support then.
I don't think there's a worry there. |
FWIW, conda-forge now has Windows builds of islpy: https://anaconda.org/conda-forge/islpy |
I'm trying to build this on Windows for Python 3.6, since I'd like to use Loopy in a project, where we ship packages to Mac, Linux & Win. I've started by trying to see if MSVC 14 could build ISL, but I'm becoming sceptical:
A few things I've done in
isl/include/isl/ctx.h
,and in
isl/isl_arg.c:20
toFinally, I'm seeing at the end of the build
It looks like
strcasecmp
is a known one andffs
is a GCC builtin, so those can likely be mapped to Windows equivalents.I'm worried that ignoring
__attribute__
might hurt ISL correctness.Another route would be to compile it all with GCC on MinGW 64, but I'm not sure how compatible this would be with the standard Python packages. Could that be used to produce wheels, etc?
edited to increase SNR
The text was updated successfully, but these errors were encountered: