Hi,
We're discussing to implement `-fno-coroutines` in clang so that we can
disable the coroutine feature with C++ standard higher than 20.
A full discussion can be found here: https://reviews.llvm.org/D156247. A major
motivation for us to do this is to keep consistency with GCC.
However, we don
Hi Nathan,
> But how do they specify the mapping from module/header-unit name to CMI, so
> that
> imports work?
>
> Is this really a clang-specific mechanism, as it has no module mapper ATM
> (IIUC)?
Yes, clang doesn't have a module mapper. And I remember Iain said he want to
introduce these op
Hi David,
> I think Nathan might've been asking not only about what currently
happens, but what we think should happen?
Yes.
> Is that consistent with `-o`? (I assume so, but don't know - I guess
there aren't many cases where `-o` is unused (maybe `-fsyntax-only`),
so that behavior might be a bit l
Hi Nathan,
> 1) Are these flags silently ignored, if no module output is to be generated?
> Or is some kind of diagnostic generated?
Currently, clang will generate the unused-command-line-argument warning for
this case:
```
argument unused during compilation: '-fmodule-output'
[-Wunused-command-
It looks like `-fmodule-file` is better from the discussion. So let's take it.
Thanks for everyone here~
Thanks,
Chuanqi
--
From:Nathan Sidwell
Send Time:2022年12月8日(星期四) 01:00
To:Iain Sandoe ; GCC Development
Cc:Jonathan Wakely ; ch
Hi Nathan,
> 1) 'save' -- does it *cause* the bmi to be saved, or is that actually
> controlled
by other options? (I suspect the latter)
Yes, it causes the bmi to be saved. In fact, when we add `-save-temps` option
in clang and we compile a module unit, we'll see the preprocessed output, the
bm