-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SourceKit] Link SwiftCompilerModules to SourceKit #42087
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
[SourceKit] Link SwiftCompilerModules to SourceKit #42087
Conversation
@swift-ci Please test |
@swift-ci Please test macOS |
Hmm I can't reproduce the linker crash locally.
@eeckstein Do you know what causes this error? |
|
||
# Workaround for a linker crash related to autolinking: rdar://77839981 | ||
set_property(TARGET ${target} APPEND_STRING PROPERTY | ||
LINK_FLAGS " -lobjc ") |
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.
Adding -objc
should workaround the linker crash. You add it here but according to the log file, it's not contained in the linker command line.
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.
Thank you! LINK_FLAGS
was overwritten by set_target_properties
after this. Updated it to set_property(TARGET ... APPEND_STRING)
This is required for SourceKit to parse Regex literals rdar://90236990
49e4132
to
88e1905
Compare
@swift-ci Please test |
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.
lgtm
This is required for SourceKit to parse Regex literals
Also link it to
swift-ide-test
too, to test IDE functionalities for regex literals.rdar://90236990