Skip to content

Commit

Permalink
Fixing up windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Oct 14, 2023
1 parent d9d95a3 commit 79eecec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def _parse_toml(pyproject_path):
def gen_modules(version):

if platform == "win32" or platform == "cygwin":
extra_compile_args_val = ['/std:c++17', "/DCMS_FULL_VERSION=\"\\\""+version+"\"\\\""]
extra_compile_args_val = ['-I../', '-Isrc/', '/std:c++17', "/DCMS_FULL_VERSION=\"\\\""+version+"\"\\\""]
define_macros_val = [("TRACE", "")]

else:
extra_compile_args_val = ['-std=c++17']
extra_compile_args_val = ['-I../', '-Isrc/', '-std=c++17']
define_macros_val = [("TRACE", ""), ("CMS_FULL_VERSION", "\""+version+"\"")]

modules = Extension(
Expand Down Expand Up @@ -102,7 +102,7 @@ def gen_modules(version):
"src/xorfinder.cpp",
"src/oracle/oracle.cpp",
],
extra_compile_args = ['-I../', '-Isrc/', '-std=c++17'],
extra_compile_args = extra_compile_args_val,
define_macros=define_macros_val,
language = "c++",
)
Expand Down

0 comments on commit 79eecec

Please sign in to comment.