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

added missing link flags for mingw build #1154

Conversation

KamilBrzoskowski
Copy link

Story: When I compiled my GDExtension using mingw engine reported missing libraries, but it didn't for msvc. After some searching and debugging I found that LINKFLAGS didn't have flag for static linking. Plus the path that build system goes to build using mingw is the path msys build should go.

FIx; I just copied lines 64-72. It will affect msys builds but should not broke them, actually it should help.

When compiling in git bash sys.platform == "win32" is true so both msys and mingw builds go into elif starting at line 40.
When I tried to remove above condition to differentiate mingw and msys builds, last block of setup(else starting at line 51/60), fails with weird error and I don't have time to invest fixing it.

With condition untouched I don't know how we can access else(so does static analysis that is shipped with vscode python extension). It seems like dead code to me. I can delete this if there is no objection.

@KamilBrzoskowski KamilBrzoskowski requested a review from a team as a code owner June 29, 2023 14:58
@dsnopek
Copy link
Collaborator

dsnopek commented Jun 29, 2023

Thanks!

However, someone else already started PR #1082 which I think addresses the same issue. The GDExtension team provided some review there that the PR author hasn't yet addressed. If you'd like, you could pick up from where they left off?

@KamilBrzoskowski
Copy link
Author

Thanks!

However, someone else already started PR #1082 which I think addresses the same issue. The GDExtension team provided some review there that the PR author hasn't yet addressed. If you'd like, you could pick up from where they left off?

There is no way to take ownership of another person PR. So if I'm to continue his work I can do it only here.

@dsnopek
Copy link
Collaborator

dsnopek commented Jun 29, 2023

So if I'm to continue his work I can do it only here.

Yep, that's absolutely fine!

@dsnopek
Copy link
Collaborator

dsnopek commented Aug 11, 2023

Superseded by #1203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants