-
Notifications
You must be signed in to change notification settings - Fork 199
Fallback on swift-frontend -scan-dependencies ...
fallback path in case libSwiftScan
shared library cannot be loaded.
#1601
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
do { | ||
try interModuleDependencyOracle.verifyOrCreateScannerInstance(fileSystem: fileSystem, | ||
swiftScanLibPath: scanLibPath) | ||
if isCachingEnabled { |
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.
@cachemeifyoucan should we error if caching is enabled but we failed to load libSwiftScan?
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.
Error out sounds good to me.
swift-frontend -scan-dependencies ...
fallback path in case libSwiftScan shared library cannot be loaded.
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 only fixes broken libSwiftScan. I do believe if you want driver to load a broken scanner, you deserve a hard error with no fallback. Warning doesn't do anything in this case and user will assume they didn't do anything horrible if they don't hit any error afterwards.
do { | ||
try interModuleDependencyOracle.verifyOrCreateScannerInstance(fileSystem: fileSystem, | ||
swiftScanLibPath: scanLibPath) | ||
if isCachingEnabled { |
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.
Error out sounds good to me.
@swift-ci test |
…case libSwiftScan shared library cannot be loaded. Resolves rdar://127768140
@swift-ci 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.
Thanks. LGTM
@swift-ci test Windows platform |
swift-frontend -scan-dependencies ...
fallback path in case libSwiftScan shared library cannot be loaded.swift-frontend -scan-dependencies ...
fallback path in case libSwiftScan
shared library cannot be loaded.
Resolves rdar://127768140