[llvm-bugs] [Bug 51296] New: clang mingw driver -mconsole doesn't override earlier -mwindows

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 31 14:09:53 PDT 2021


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

            Bug ID: 51296
           Summary: clang mingw driver -mconsole doesn't override earlier
                    -mwindows
           Product: new-bugs
           Version: 12.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-bugzilla at jdrake.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    martin at martin.st

I'm running into a situation where a pkg-config file is providing a -mwindows
argument, but later the program being built explicitly specified -mconsole.  On
gcc, this seems to be respected but with clang -mwindows seems to always win.

https://github.com/llvm/llvm-project/blob/d28af7c654d8db0b68c175db5ce212d74fb5e9bc/clang/lib/Driver/ToolChains/MinGW.cpp#L139-L145

-- 
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/20210731/d580f9c9/attachment-0001.html>


More information about the llvm-bugs mailing list