-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add support for building the library on Windows using MSVC. #56
Changes from 13 commits
43fb5b2
8ee73a5
615d417
ad8f7c2
5bd3d48
01aae4a
f6e1317
721a03a
a147d80
8259529
5ccb691
3baecc5
cc63e0a
1f36058
11c720f
ba1e868
7c7708e
a1f5490
679e7df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ python3 -m pip install --upgrade clp-ffi-py | |
Note: | ||
|
||
- Python 3.7 or higher is required. | ||
- Only Linux and macOS are supported at present. | ||
- Tested only on Linux, macOS and Windows. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need work "only", lol There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lol i was thinking about Solaris and FreeBSD when i wrote this, but yeah the word seems a bit unnecessary here |
||
|
||
To install an older version or download the prebuilt `whl` package, check the | ||
project homepage on PyPI [here][16]. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ | |
"src/clp_ffi_py/utils.cpp", | ||
], | ||
extra_compile_args=[ | ||
"/std:c++20", | ||
"/O2," | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
MSVC's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kk, good to know that, thx! |
||
] if "nt" == os.name else [ | ||
"-std=c++20", | ||
"-O3", | ||
], | ||
|
+6 −1 | components/core/src/ffi/ir_stream/byteswap.hpp | |
+7 −1 | components/core/src/string_utils.inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These shall not be merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is merged with the latest CLP code: #55