[llvm-bugs] [Bug 42066] New: clang-cl with /P and /Brepro fails with a cryptic error message

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 29 15:38:38 PDT 2019


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

            Bug ID: 42066
           Summary: clang-cl with /P and /Brepro fails with a cryptic
                    error message
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brucedawson at chromium.org
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Bug https://bugs.llvm.org/show_bug.cgi?id=38508 reported a host of errors when
preprocessing a file in the context of the Chromium build. Most of those errors
were fixed but one remains. I started with the repro steps from the previous
bug but I managed to reduce it greatly.

c:\src\chromium3\src\out\release>type test.cpp
int x;

c:\src\chromium3\src\out\release>..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe
/P /Brepro /c test.cpp
clang-cl: warning: argument unused during compilation:
'-mno-incremental-linker-compatible' [-Wunused-command-line-argument]

That's it. I don't know *why* /Brepro triggers this error message, but it does.

Preprocessing files is a valuable investigative technique so getting this to
work again would be great.

-- 
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/20190529/30853b7a/attachment-0001.html>


More information about the llvm-bugs mailing list