-
-
Notifications
You must be signed in to change notification settings - Fork 23.4k
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
base: master
Are you sure you want to change the base?
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
platform_methods.py
Outdated
] | ||
|
||
if env["osxcross"]: | ||
env.Append(SWIFTCFLAGS=["-resource-dir", "/root/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift"]) |
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.
env.Append(SWIFTCFLAGS=["-resource-dir", "/root/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift"]) | |
env.Append( | |
SWIFTCFLAGS=[ | |
"-resource-dir", | |
"/root/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift", | |
] | |
) |
ca104e2
to
e866b19
Compare
Thanks, forgot about running |
b9bf467
to
035806e
Compare
035806e
to
b28fdca
Compare
b28fdca
to
558b0db
Compare
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.
Summary
Ensures release builds using osxcross paths when using
swiftc
.Depends on: