On 12/9/22 12:33, Iain Sandoe wrote:
Hello all.

On 9 Dec 2022, at 01:58, chuanqi.xcq <yedeng...@linux.alibaba.com> wrote:

It looks like `-fmodule-file` is better from the discussion. So let's take it. 
Thanks for everyone here

So FAOD (after this discussion) Chuanqi's current patchset implements the 
following in clang:

-fmodule-output

   - this causes the BMI to be saved in the CWG with the basename of the source 
file and a suffix of .pcm.

-fmodule-output=<path>

  - this causes the BMI to be saved at the path specified.


1) Are these flags silently ignored, if no module output is to be generated? Or is some kind of diagnostic generated?

2) what happens if you specify both -- do you get two outputs, a diagnostic, or is one silently selected?

3) What is the behaviour if compilation fails? Does nothing happen to the file indicated (potentially leaving an older version there), or does the equivalent of 'rm -f $MODULE.pcm' happen?

nathan

--
Nathan Sidwell

Reply via email to