[llvm-bugs] [Bug 38993] New: clang-cl: /clr is not supported, and not forwarded with /fallback

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 19 00:01:07 PDT 2018


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

            Bug ID: 38993
           Summary: clang-cl: /clr is not supported, and not forwarded
                    with /fallback
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kpreisert at gmail.com
                CC: llvm-bugs at lists.llvm.org

I have some source files in my project using C++/CX, so they are compiled with
the cl.exe flag "/clr". Clang does not support this flag. I then read about the
/fallback option for clang-cl and tried it, expecting that all the flags are
passed to the MSVC cl.exe. However, /clr is not passed, so the fallback cl.exe
complains "fatal error C1190: managed targeted code requires a '/clr' option"

Using Process Monitor, I looked into the cl.exe invocation that clang-cl.exe
makes, and found the following differences in passed options (although I'm not
sure which of these are actually unproblematic because they match the default
options):
- The original clang-cl invocation had /showIncludes /GR /Gy /J /MD /nologo /W3
/TP /clr /Gm- /Zi /GF /Od /c
- The fallback cl invocation has /nologo /c /W0 /Od /GF /Gy /Z7 /MD /Tp

-- 
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/20180919/d75cfea7/attachment.html>


More information about the llvm-bugs mailing list