-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cmake] Add support for checking if we have a host toolchain Swift compiler #37511
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
[cmake] Add support for checking if we have a host toolchain Swift compiler #37511
Conversation
…mpiler. This just causes us to perform the cmake check. It isn't used anywhere.
@swift-ci test |
@swift-ci test windows platform |
message(STATUS "WARNING! Did not find a host compiler swift?! Can not build | ||
any compiler host sources written in 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.
message(STATUS "WARNING! Did not find a host compiler swift?! Can not build | |
any compiler host sources written in Swift") | |
message(WARNING "Did not find a host compiler swift. Can not build any compiler host sources written in 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.
I think it may be nice to sink this lower to the point of use.
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.
Mind if I do that in a follow on?
I will fix that as follow on. |
This mimicks the same logic used for shared libraries a few lines above. This will allow the minimal freestanding stdlib to build with swiftlang#37511 Addresses rdar://78336832
This mimicks the same logic used for shared libraries a few lines above. This will allow the minimal freestanding stdlib to build with #37511, solving errors like ``` ninja: error: build.ninja:4213: multiple rules generate stdlib/public/SwiftOnoneSupport/CMakeFiles/ swiftSwiftOnoneSupport-freestanding-x86_64-static.dir/__/__/ linker-support/magic-symbols-for-install-name.c.o [-w dupbuild=err] ``` Addresses rdar://78336832
…g#37642) This mimicks the same logic used for shared libraries a few lines above. This will allow the minimal freestanding stdlib to build with swiftlang#37511, solving errors like ``` ninja: error: build.ninja:4213: multiple rules generate stdlib/public/SwiftOnoneSupport/CMakeFiles/ swiftSwiftOnoneSupport-freestanding-x86_64-static.dir/__/__/ linker-support/magic-symbols-for-install-name.c.o [-w dupbuild=err] ``` Addresses rdar://78336832
This just causes us to perform the cmake check. It isn't used anywhere.