Skip to content

Conversation

moi15moi
Copy link
Contributor

@moi15moi moi15moi commented Jul 17, 2025

Fix #5750

Do you want me to add a msys2 (that use clang) into the workflow so these kind of problem are catched by the CI?

Description

This allow to compile on msys2 clang without any error.
Without this fix, I was getting the error: hidden visibility cannot be applied to 'dllexport' declaration
This was probably affecting any environment of msys2, but I didn't verified.

Suggested changelog entry:

  • Fix compilation with clang on msys2.

@moi15moi
Copy link
Contributor Author

The CI failure is no related to this PR

@henryiii henryiii changed the title Don't force -fvisibility=hidden on Windows fix: don't force -fvisibility=hidden on Windows Jul 18, 2025
@henryiii henryiii merged commit 316273e into pybind:master Jul 18, 2025
145 of 146 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Jul 18, 2025
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Aug 22, 2025
moi15moi added a commit to moi15moi/VideoTimestamps that referenced this pull request Aug 22, 2025
The fix for msys2 is included in 3.0.1 (pybind/pybind11#5757)
moi15moi added a commit to moi15moi/VideoTimestamps that referenced this pull request Aug 22, 2025
The fix for msys2 is included in 3.0.1 (pybind/pybind11#5757)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants