-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SwiftSyntax] Enable Package CMO if possible #75304
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
swiftlang/swift-syntax#2736 |
swiftlang/swift-syntax#2736 |
a18777c
to
7a2883e
Compare
7a2883e
to
ff74dee
Compare
The compiler crashes when compiling swift files importing package-cmo enabled '.swiftmodule'. Avoid that by not-using '.swiftmodule'.
ff74dee
to
f0808e5
Compare
swiftlang/swift-syntax#2736 |
1 similar comment
swiftlang/swift-syntax#2736 |
endfunction() | ||
|
||
# Test if the Swift compiler supports -disable-implicit-<module>-module-import. | ||
macro(swift_supports_implicit_module module_name out_var) |
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.
(Optional) There is a function with the same name in cmake/modules/SwiftImplicitImport.cmake
-- we may consider folding that into this new implementation.
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.
This PR does remove cmake/modules/SwiftImplicitImport.cmake
and replaces swift_supports_implicit_module
function with this new implementation.
Update for swiftlang/swift-syntax#2736
The compiler crashes when compiling swift files importing package-cmo enabled
.swiftmodule
. Avoid that by not-using.swiftmodule
.