Skip to content

Conversation

@stuartcarnie
Copy link
Contributor

Repiteo
Repiteo previously requested changes Oct 6, 2025
Copy link
Contributor

@Repiteo Repiteo left a comment

Choose a reason for hiding this comment

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

Needs style adjustment to pass CI

@stuartcarnie
Copy link
Contributor Author

Thanks, forgot about running ruff!

@stuartcarnie stuartcarnie requested a review from bruvzg October 7, 2025 21:53
@stuartcarnie stuartcarnie force-pushed the swift_build branch 2 times, most recently from b28fdca to 558b0db Compare October 7, 2025 22:08
Comment on lines 273 to 275
if "osxcross" in env:
# TODO: swiftly use --print-location
frontend_path = "/root/.local/share/swiftly/toolchains/6.2.0/usr/bin/swift-frontend"
Copy link
Member

Choose a reason for hiding this comment

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

I'll note that this makes the setup hardcoded for our own osxcross setup in our build containers. In theory we used to support people using their own osxcross setup which may use different paths, which is why APPLE_TOOLCHAIN_PATH is configurable.

I think it becomes increasingly harder for users to get a working osxcross setup for cross-compilation without using our own build containers, so it's probably fine to hardcode things for now.

But we should soon see how to improve it further because e.g. the hardcoded 6.2.0 probably means that it won't be possible to compile iOS template for the current state of Godot after this PR in a year or two with an updated build container.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix that, as we should make it configurable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@akien-mga it's now configurable via SWIFT_FRONTEND, and I've tagged you in the changes to the godot-build-scripts repo with the additional change

@akien-mga akien-mga merged commit 7864ac8 into godotengine:master Oct 18, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

5 participants