[llvm-bugs] [Bug 42807] New: -fembed-bitcode with -MJ leads to unexpected compilation database output

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 29 04:02:06 PDT 2019


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

            Bug ID: 42807
           Summary: -fembed-bitcode with -MJ leads to unexpected
                    compilation database output
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ewild at sysmocom.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Combining -fembed-bitcode with -MJ leads to unexpected compilation database
output, because the compilation database now includes two distinct lines
instead of one, which is rather surprising:

>{ "directory": "/srcdir/libfilter", "file": "bsc_msg_acc.c", "output": "/tmp/bsc_msg_acc-e3ca7f.bc", "arguments": ["/opt/llvm-project/build/bin/clang-8", "-xc", "bsc_msg_acc.c", <snip>, "-c", "-o", "bsc_msg_acc.o", "--target=x86_64-unknown-linux-gnu"]},
>{ "directory": "/srcdir/libfilter", "file": "/tmp/bsc_msg_acc-e3ca7f.bc", "output": "bsc_msg_acc.o", "arguments": ["/opt/llvm-project/build/bin/clang-8", "-xir", "/tmp/bsc_msg_acc-e3ca7f.bc", <snip> "-c", "-o", "bsc_msg_acc.o", "--target=x86_64-unknown-linux-gnu"]},

-- 
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/20190729/848a4afe/attachment-0001.html>


More information about the llvm-bugs mailing list