Skip to content

[LLDB] Filter out -Werror options when setting up -cc1 Clang Invocations#12839

Open
adrian-prantl wants to merge 1 commit intoswiftlang:stable/21.xfrom
adrian-prantl:174422552
Open

[LLDB] Filter out -Werror options when setting up -cc1 Clang Invocations#12839
adrian-prantl wants to merge 1 commit intoswiftlang:stable/21.xfrom
adrian-prantl:174422552

Conversation

@adrian-prantl
Copy link
Copy Markdown

The non-caching code path was already doing this, but the code path for cc1 flags was missing this functionality. Even though LLDB is replaying the compile-time compiler invocation, we have seen reports where additional warnings get diagnosed at debug time, effectively rendering the debug session unusable.

rdar://174422552

@adrian-prantl adrian-prantl requested a review from a team as a code owner April 24, 2026 19:33
@adrian-prantl adrian-prantl requested review from cachemeifyoucan and removed request for a team April 24, 2026 19:33
@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test

Comment thread lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp Outdated
Comment thread lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test

Comment thread lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Comment thread lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp Outdated
The non-caching code path was already doing this, but the code path
for cc1 flags was missing this functionality. Even though LLDB is
replaying the compile-time compiler invocation, we have seen reports
where additional warnings get diagnosed at debug time, effectively
rendering the debug session unusable.

rdar://174422552
@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants