-
Notifications
You must be signed in to change notification settings - Fork 13.5k
--std=c++20 -fno-modules still sets __has_feature(modules) to 1 #57432
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
Comments
@llvm/issue-subscribers-clang-frontend |
The |
And it looks true currently we lack the ability to disable the standard c++ modules. May I ask the intention? |
@llvm/issue-subscribers-c-20 |
@llvm/issue-subscribers-clang-modules |
This is in the context of mixing Objective-C++ and Swift. The Swift compiler generates code that looks like this:
We are currently building a code base that is C++17 and uses some Swift and Objective-C++ code. Our code base does not yet support building with clang modules support enabled. When trying to build with |
Oh, I understood it roughly. Currently both |
It looks like https://reviews.llvm.org/D106864 addressed the command-line flag problem? |
Yeah, it looks true. Although it requires |
In the long run, we would like to avoid using Xclang flags in the Chromium build. Is there a plan to make this a driver flag? |
Yeah, there is an issue tracking this: #55891. Although we don't have any concrete proposal yet... |
Uh oh!
There was an error while loading. Please reload this page.
The following code should compile without error with
--std=c++20 -fno-modules
:Actual result: error message.
The text was updated successfully, but these errors were encountered: