X Tutup
Skip to content

Fix compilation errors with deprecated=no#112953

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
LanzaSchneider:LanzaSchneider-patch-1
Nov 20, 2025
Merged

Fix compilation errors with deprecated=no#112953
Repiteo merged 1 commit intogodotengine:masterfrom
LanzaSchneider:LanzaSchneider-patch-1

Conversation

@LanzaSchneider
Copy link
Contributor

@LanzaSchneider LanzaSchneider commented Nov 19, 2025

When build with arg deprecated=no, this compilation error occurs:
516249862-5a93f1e5-e54f-41a5-a3e8-dbf4b2803d7a

Bugsquad edit:

@LanzaSchneider LanzaSchneider requested a review from a team November 19, 2025 12:03
@akien-mga akien-mga changed the title Fix compilation errors with deprecated=no Fix compilation errors with deprecated=no Nov 19, 2025
@akien-mga akien-mga added this to the 4.6 milestone Nov 19, 2025
@KoBeWi
Copy link
Member

KoBeWi commented Nov 19, 2025

Shouldn't the whole upgrade tool be disabled with deprecated=no?
I though it's already the case, which is why I didn't add any ifdefs.

@akien-mga
Copy link
Member

akien-mga commented Nov 19, 2025

Shouldn't the whole upgrade tool be disabled with deprecated=no? I though it's already the case, which is why I didn't add any ifdefs.

I don't think it should be disabled. For me a main use case for the upgrade tool is to simply re-save all scenes and resources when upgrading to a new Godot version (so e.g. going to 4.6, all node unique IDs get generated and saved). That doesn't rely on any deprecated functionality but it would be sad not to have this feature when compiling with deprecated=no.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 19, 2025

So I guess the ProjectSettings call (lines 82-83) should also be wrapped, even if it doesn't cause compilation errors. And possibly the mesh_instance_3d.h include.

@LanzaSchneider
Copy link
Contributor Author

So I guess the ProjectSettings call (lines 82-83) should also be wrapped, even if it doesn't cause compilation errors. And possibly the mesh_instance_3d.h include.

Yes, I can wrap those calls too if you'd like (given this PR's focus on compilation fixes). Or would you prefer to submit it separately?

@akien-mga
Copy link
Member

It would make sense to make those changes in this PR as they're semantically related. So yes, please go ahead :)

@Repiteo Repiteo merged commit 51c470e into godotengine:master Nov 20, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 20, 2025

Thanks!

@LanzaSchneider LanzaSchneider deleted the LanzaSchneider-patch-1 branch November 21, 2025 01:24
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.

Build fails at 49% with deprecated=no

4 participants

X Tutup