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

Revert "Windows: Configure with --enable-btls-lib to build BTLS dll" #64

Closed

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented May 4, 2022

This reverts commit f63f4e2.

This broke OSX ARM64 builds, and so we've been building official releases
with this commit reverted locally for a while.

See godotengine/build-containers#95 for details.

As far as I remember this change was done in support of #47 to address godotengine/godot#54758 but that didn't really work out in the end?

Another option would be to improve the code further so that it affects only Windows and not macOS, but for now I PR the revert we've been using for several months (see godotengine/build-containers@d8d17c5).

This reverts commit f63f4e2.

This broke OSX ARM64 builds, and so we've been building official releases
with this commit reverted locally for a while.

See godotengine/build-containers#95 for details.
@@ -88,8 +88,7 @@ def setup_desktop_template(env: dict, opts: DesktopOpts, product: str, target_pl
'--enable-maintainer-mode',
'--with-tls=pthread',
'--without-ikvm-native',
'--enable-btls',
'--enable-btls-lib'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reviewing all the changes, this seems to be the only part that has an effect on macOS builds. I think it's better to do this instead of reverting the entire thing.

So basically this line, then add this below:

if target_platform == 'windows':
    CONFIGURE_FLAGS += [
        '--enable-btls-lib'
    ]

Or if we want to keep the change for Linux as well, then:

if target_platform != 'osx':
    CONFIGURE_FLAGS += [
        '--enable-btls-lib'
    ]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it turns out that this also breaks Windows builds, at least the MinGW ones: godotengine/godot#61176

So for now I've simply reverted both #47 and #65 to go back to the tried and trusted configuration that we've been using for the past few months.

@akien-mga
Copy link
Member Author

Superseded by #65.

@akien-mga akien-mga closed this May 9, 2022
@akien-mga akien-mga deleted the revert-windows-btls-lib branch May 9, 2022 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants