Suppres the r unused-argument warning for -fmodule-output according to the discussion thread in https://gcc.gnu.org/pipermail/gcc/2022-December/240239.html.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good, thanks! (for the record I'm not 100% sure this is the right direction (I wonder if this'll be confusing for users if they ask for the module output but didn't get any because they weren't doing a modular build, but that's not obvious, etc), so I don't mind if, in retrospect, we find that unused command line warning turns out to be suitable and revert this patch some time in the future - but I think "the same as -o" is a good place to start, at least)