Skip to content

Commit

Permalink
setup: Add support for installing the lib on Windows with MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Mar 30, 2024
1 parent 5ad578b commit 1308af2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "src/clp"]
path = src/clp
url = https://github.com/y-scope/clp.git
url = https://github.com/junhaoliao/clp.git
branch = clp-ffi-py-windows
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"src/clp_ffi_py/utils.cpp",
],
extra_compile_args=[
"/std:c++20",
"/O2,"
] if "nt" == os.name else [
"-std=c++20",
"-O3",
],
Expand Down
2 changes: 1 addition & 1 deletion src/clp
Submodule clp updated 150 files

0 comments on commit 1308af2

Please sign in to comment.