[llvm-bugs] [Bug 8312] clang doesn't handle -M/-MF properly

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 5 18:51:56 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=8312

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray.me
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #6 from Fangrui Song <i at maskray.me> ---
> Were there any updates regarding this?

I think yes..

% gcc a.c -MF a.d -c -o a.o
cc1: error: to generate dependencies you must specify either -M or -MM
% clang a.c -MF a.d -c -o a.o
clang-9: warning: argument unused during compilation: '-MF a.d'
[-Wunused-command-line-argument]


% clang a.c -M -MF a.d -c -o a.o
# a.d generated
% gcc a.c -M -MF a.d -c -o a.o
# a.d generated

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190706/d7b5e40f/attachment.html>


More information about the llvm-bugs mailing list