-
Notifications
You must be signed in to change notification settings - Fork 36
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
Ditch default -static
for Windows builds.
#311
Conversation
@@ -23,8 +23,6 @@ if(NOT CMAKE_BUILD_TYPE) | |||
endif() | |||
|
|||
if(WIN32 AND CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") | |||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static") |
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.
🔥
|
||
os.add_dll_directory(extra_dll_dir) | ||
os.add_dll_directory(extra_dll_dir) |
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.
Oh shoot I meant to test this!
libgcc_s_seh-1-5c71c85c0ca01174917203266ba98140.dll | ||
libgfortran-5-08073c6868a1df2cbc5609e49cbe3ad8.dll | ||
KERNEL32.dll | ||
msvcrt.dll |
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.
I have 13.1.0
on my dev machine (via MSYS2 + pacman
) but GitHub Actions has 11.2.0.07112021
(via Chocolatey).
In addition to hash differences, this also produces ordering differences. In 13.1.0
, the order is:
libgcc_s_seh-1-5c71c85c0ca01174917203266ba98140.dll
KERNEL32.dll
msvcrt.dll
libgfortran-5-08073c6868a1df2cbc5609e49cbe3ad8.dll
This is an awesome milestone for the Windows ecosystem here for scientific Python (or the wider "Python + extensions" ecosystem).
It's so great that https://github.com/adang1345/delvewheel exists! H/T to @adang1345!