Skip to content

Strip out -fno-implicit-modules and friends from ClangImporter options #8527

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

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

adrian-prantl
Copy link

LLDB would rather control this itself.

rdar://124699949

@kastiglione kastiglione requested a review from artemcm April 3, 2024 00:22
@kastiglione
Copy link

@swift-ci test

LLDB would rather control this itself.

rdar://124699949
@adrian-prantl
Copy link
Author

@swift-ci test

Comment on lines +1753 to +1755
if (arg_sr == "-fno-implicit-modules" ||
arg_sr == "-fno-implicit-module-maps")
continue;
Copy link

@kastiglione kastiglione Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we put this behind a setting? could it cause issues?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we really need to we can replace with the extra clang flags setting already.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there should be no need to add another setting to control this.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried that by doing this to fix the one bug report, we may create new unforeseen bugs. However, that's entirely speculative on my part. I guess we'll find out whether allowing implicit modules in the presence of explicit modules has any gotchas.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will do much to fix that specific bug, but I do think that the target's build settings should not control how LLDB imports modules.

@adrian-prantl
Copy link
Author

@swift-ci test windows

@adrian-prantl adrian-prantl merged commit 72fc9c0 into swiftlang:swift/release/6.0 Apr 4, 2024
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.

3 participants