-
Notifications
You must be signed in to change notification settings - Fork 108
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
update cmake setup so that the library can be used by SwiftPM cmake build #73
Conversation
…uild motivation: integrate with SwiftPM changes: * rename the top level project to SwiftSystem instead of swift-system to align with other projects * rename System to SystemPackage to align with SwifPM setup * update architectures to include arm64
cc @compnerd |
@swift-ci please test |
cc @compnerd |
@compnerd what do you think of these changes? |
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 think that this should be fine - I can see this causing some issues for the installers, but we can deal with that subsequently (the manifest needing to be updated).
I'm still unhappy with the change - I don't think that this should be called SystemPackage on anything but macOS - the library name should be libSystem.so or System.dll on non-macOS targets (it has to be different on macOS to avoid the conflict with libSystem). That said, I don't think that we need to hold this up for dealing with the name.
The change to SwiftSystemConfig.cmake.in though is important - it isn't doing what it is supposed to do.
If we wanted to in the future ship System as a binary with toolchains ala corelibs and Darwin/Glibc overlays, would we have the distinction between source and binary distribution on all platforms? |
thanks @compnerd
👍 by "installers" you mean Windows installers?
As you probably know, my goal is to integrate SwiftSystem into SwiftPM and given that the toolchain build uses CMake we need to make that work. I have no strong opinion about how to achieve it other that the current CMake setup does not work in this context so needs to be fixed. Do you a different approach you want to propose as an alternative to this PR and the downstream ones in TSC, SwiftP, LSP, etc?
done, please confirm this is fine now |
@swift-ci please test |
Yes. There will be changes needed in swift-installer-scripts to update the manifest. But that should happen at the same time as updating the tag.
Yes, I understand that. I think that changing the name doesn't need to hold this up for now - this is matching the behaviour in Package.swift. I'm suggesting that the target name be changed much like it is in Foundation:
|
motivation: integrate with SwiftPM
changes: