Skip to content
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

Merged
merged 14 commits into from
Jul 31, 2023
Merged

Conversation

dhermes
Copy link
Owner

@dhermes dhermes commented Jul 30, 2023

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!

@@ -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")
Copy link
Owner Author

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)
Copy link
Owner Author

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
Copy link
Owner Author

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

@dhermes dhermes merged commit f702d70 into main Jul 31, 2023
11 checks passed
@dhermes dhermes deleted the windows-no-more-static branch July 31, 2023 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant