Skip to content

Conversation

@dgcole
Copy link
Contributor

@dgcole dgcole commented May 31, 2025

Double precision builds with CMake are currently broken. Since I'm contributing the fix directly I did not bother to make an issue first, but please let me know if that is required.

The binding_generator_generate_bindings function has erroneous commas after some of its arguments (i.e., PRECISION,), but this is not correct CMake syntax; the arguments should be separated by whitespace. This causes the USE_TEMPLATE_GET_NODE, BITS, and PRECISION arguments to not be properly received when this function is invoked. This is partially masked for the BITS argument as there is a BITS variable at a higher CMake scope that is used.

The end result is that the PYTHON_SCRIPT always ends up getting populated with precision='' and use_template_get_node='', which makes it impossible to get a working double precision build via CMake.

@dgcole dgcole requested a review from a team as a code owner May 31, 2025 23:32
Copy link
Collaborator

@enetheru enetheru left a comment

Choose a reason for hiding this comment

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

I approve these changes.

Copy link
Contributor

@paddy-exe paddy-exe left a comment

Choose a reason for hiding this comment

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

Makes sense in terms of how CMake works👍🏻 haven't tested the changes though

@dsnopek
Copy link
Collaborator

dsnopek commented Jun 7, 2025

Thanks!

@dsnopek dsnopek merged commit dde6663 into godotengine:master Jun 7, 2025
11 checks passed
@dsnopek dsnopek added bug This has been identified as a bug cherrypick:4.3 cherrypick:4.4 labels Jun 7, 2025
@dsnopek dsnopek added this to the 4.x milestone Jun 7, 2025
@dsnopek
Copy link
Collaborator

dsnopek commented Jun 24, 2025

Cherry-picked for 4.4 in PR #1805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants