-
-
Notifications
You must be signed in to change notification settings - Fork 23.5k
Build: Fix container build path for swift #111299
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
Conversation
There was a problem hiding this 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
ca104e2 to
e866b19
Compare
|
Thanks, forgot about running |
b9bf467 to
035806e
Compare
b28fdca to
558b0db
Compare
platform_methods.py
Outdated
| if "osxcross" in env: | ||
| # TODO: swiftly use --print-location | ||
| frontend_path = "/root/.local/share/swiftly/toolchains/6.2.0/usr/bin/swift-frontend" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
558b0db to
ad74ed6
Compare
|
Thanks! |
Summary
Ensures release builds using osxcross paths when using
swiftc.Depends on: