-
Notifications
You must be signed in to change notification settings - Fork 440
[CompilerPlugin] Updates after Foundation removal #2618
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
@swift-ci Please test |
a295a7c
to
7c37f5f
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test |
@swift-ci Please test Windows |
@@ -24,7 +24,7 @@ fileprivate struct AtomicBool { | |||
} | |||
} | |||
#else | |||
import _AtomicBool | |||
import _SwiftSyntaxCShims | |||
#endif |
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.
If we’ve got AtomicBool
available in the CMake build as well now (I never thought of making it header-only, nice idea), I think we can also remove the hack of defining a fake AtomicBool
when SWIFT_SYNTAX_BUILD_USING_CMAKE
is sent and instead always use _SwiftSyntaxCShims
.
503e579
to
de8f78f
Compare
swiftlang/swift#73224 |
swiftlang/swift#73224 |
swiftlang/swift#73224 |
Headers are now in 'swiftsyntax' subdirectory to avoid file name conflicts with libc. e.g. '#include <_stdio.h>' referenced from C++ compiler code which might pick up '_SwiftSyntaxCShims/include/_stdio.h'
So that other modules (e.g. swift-plugin-server can use it) Renamed to 'StandardIOMessageConnection'
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
swiftlang/swift-package-manager#7503 |
swiftlang/swift-package-manager#7503 |
swiftlang/swift-package-manager#7503 |
@swift-ci Please test |
@swift-ci Please test Windows |
Leaving the AtomicBool hack as-is for now, because making SwiftSyntax depend on CShims in CMake is too much hassle. |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
_AtomicBool
into_SwiftSyntaxCShims
_AtomicBool
header onlyerrno
from_stdio.h
swift_name
attributes to C shimsAlso, move
SwiftCompilerPlugin.PluginMessageConnection
toSwiftCompilerPluginMessageHandling
, so other components e.g.swift-plugin-server
can use it as well.