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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to