Skip to content

[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

Merged

Conversation

gottesmm
Copy link
Contributor

This just causes us to perform the cmake check. It isn't used anywhere.

…mpiler.

This just causes us to perform the cmake check. It isn't used anywhere.
@gottesmm gottesmm requested a review from compnerd May 19, 2021 19:12
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci test windows platform

Comment on lines +62 to +63
message(STATUS "WARNING! Did not find a host compiler swift?! Can not build
any compiler host sources written in Swift")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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")

Copy link
Member

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.

Copy link
Contributor Author

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?

@gottesmm
Copy link
Contributor Author

I will fix that as follow on.

@gottesmm gottesmm merged commit bcbd026 into swiftlang:main May 19, 2021
@gottesmm gottesmm deleted the pr-cb2ea137822cc9105d47dead13198b8899a5df4d branch May 19, 2021 23:51
edymtt added a commit to edymtt/swift that referenced this pull request May 25, 2021
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
edymtt added a commit that referenced this pull request May 26, 2021
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
LucianoPAlmeida pushed a commit to LucianoPAlmeida/swift that referenced this pull request May 27, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants