Skip to content
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

Trying to fix compilation on MSVC #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os, sys
import optparse
import platform

from setuptools import setup
from distutils.extension import Extension
from setuptools import setup, Extension
from datetime import datetime


Expand Down Expand Up @@ -37,14 +37,22 @@
# Major number is Yices Version, minor number creation date of the bindings
YICESPY_VERSION='%s.%s' % (YICES_VERSION, YICESPY_MINOR_VERSION)

extra_include = []
if 'C_INCLUDE_PATH' in os.environ:
extra_include.append(os.environ['C_INCLUDE_PATH'])
libraries = ['yices']
runtime_libraries=[os.path.join(YICES_DIR, "lib")]
if platform.system() == 'Windows':
libraries = ['libyices', 'psapi', 'mpir']
runtime_libraries = []
yices_ext = Extension('_yicespy',
['yices_python.i'],
swig_opts=['-I%s'%os.path.join(YICES_DIR, "include")],
include_dirs=[os.path.join(YICES_DIR, "include"),os.environ['C_INCLUDE_PATH']],
include_dirs=[os.path.join(YICES_DIR, "include")],
library_dirs=[os.path.join(YICES_DIR, "lib")],
runtime_library_dirs=[os.path.join(YICES_DIR, "lib")],
libraries=['yices'],
language='c',
runtime_library_dirs=runtime_libraries,
libraries=libraries,
language='c++',
)

short_description="Yices SMT-Solver Wrapper"
Expand Down
5 changes: 4 additions & 1 deletion yices_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ int32_t yices_get_rational64_value(model_t *mdl, term_t t, int64_t *OUTPUT, uint
__YICES_DLLSPEC__ extern int32_t yices_get_bv_value_width(model_t *mdl,
term_t t,
uint32_t width,
int32_t val[])
int32_t val[]);

int32_t yices_get_bv_value_width(model_t *mdl, term_t t, uint32_t width,
int32_t val[])
{
return yices_get_bv_value(mdl, t, val);
}
Expand Down