Skip to content

Commit

Permalink
Updating for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Oct 14, 2023
1 parent 68363ce commit 5523e5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ def _parse_toml(pyproject_path):

def gen_modules(version):
if platform == "win32" or platform == "cygwin":
extra_compile_args_val = ['/std:c++17']
extra_compile_args_val = ['/std:c++17', "/DCMS_LOCAL_BUILD=1", "/DAPPMC_FULL_VERSION=\"\\\""+version+"\"\\\""]
define_macros_val = [("TRACE", "")]

else:
extra_compile_args_val = ['-std=c++17']
define_macros_val = [('CMS_LOCAL_BUILD', 1),("TRACE", ""),("APPMC_FULL_VERSION", "\""+version+"\"")]

modules = Extension(
name = "pyapproxmc",
Expand Down Expand Up @@ -109,7 +112,7 @@ def gen_modules(version):
"python/arjun/src/simplify.cpp",
],
extra_compile_args = extra_compile_args_val,
define_macros = [('CMS_LOCAL_BUILD', 1),("TRACE", ""),("APPMC_FULL_VERSION", "\""+version+"\"")],
define_macros = define_macros_val,
include_dirs = ["src/", "python/cryptominisat/src/", "python/arjun/src/"],
language = "c++",
)
Expand Down

0 comments on commit 5523e5b

Please sign in to comment.