-
Notifications
You must be signed in to change notification settings - Fork 314
Add a few more arguments to allow errors during indexing #1384
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
Add a few more arguments to allow errors during indexing #1384
Conversation
I noticed that we were missing a bunch more arguments (in particular for clang index invocations), while diagnosing rdar://129071600, which is fixed by passing `-experimental-allow-module-with-compiler-errors` to the Swift index invocations. rdar://129071600
@swift-ci Please test |
let removeFrontendFlags = [ | ||
"-experimental-skip-non-inlinable-function-bodies", | ||
"-experimental-skip-all-function-bodies", | ||
] | ||
|
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.
Don't we want to remove these for indexing?
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.
They would presumably only be there if we added them, which we're currently. not. Probably doesn't hurt to keep anyway though.
|
||
func testImportPreparedModuleWithFunctionBodiesSkipped() async throws { | ||
// This test case was crashing the indexing compiler invocation for Client if Lib was built for index preparation | ||
// (using `-enable-library-evolution -experimental-skip-all-function-bodies -experimental-lazy-typecheck`) but x |
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.
x
?
let removeFrontendFlags = [ | ||
"-experimental-skip-non-inlinable-function-bodies", | ||
"-experimental-skip-all-function-bodies", | ||
] | ||
|
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.
They would presumably only be there if we added them, which we're currently. not. Probably doesn't hurt to keep anyway though.
I noticed that we were missing a bunch more arguments (in particular for clang index invocations), while diagnosing rdar://129071600, which is fixed by passing
-experimental-allow-module-with-compiler-errors
to the Swift index invocations.rdar://129071600